---
agentTools:
  projectIndex: https://pneumacare.readme.io/llms.txt
---

# Creating a user medical records profile

**This endpoint requires the public API key**

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "PneumaCare API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.pneumahealth.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "j72nw6niu527coanz7b8"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/patient/{user_id}/medical_records/": {
      "post": {
        "summary": "Creating a user medical records profile",
        "description": "",
        "operationId": "creating-a-user-medical-records-profile",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "ID of the user generated by PneumaCare",
            "schema": {
              "type": "string",
              "default": "hay8tauk1ivlovi"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "height": {
                    "type": "number",
                    "description": "height of the user in feet. Max 9ft",
                    "default": 6.3,
                    "format": "float"
                  },
                  "weight": {
                    "type": "integer",
                    "description": "Weight of the user in kg. Max 300kg",
                    "default": 90,
                    "format": "int32"
                  },
                  "family_medical_history": {
                    "type": "object",
                    "description": "Kindly refer to the [glossary] (https://pneumacare.readme.io/reference/glossary#family-medical-history) for reference",
                    "properties": {
                      "diabetes": {
                        "type": "array",
                        "description": "key is condition and the value should be your family members.",
                        "default": [
                          "[\"Father\"",
                          "\"Uncle\"]"
                        ],
                        "items": {
                          "type": "string"
                        }
                      },
                      "hypertension": {
                        "type": "array",
                        "description": "key is condition and the value should be your family members.",
                        "default": [
                          "[\"Mother\"",
                          "\"Brother\"]"
                        ],
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "allergies": {
                    "type": "array",
                    "description": "List of users allergies. Refer to [glossary] (https://pneumacare.readme.io/reference/glossary#allergies)",
                    "default": [
                      "Egg",
                      "Chloroquine"
                    ],
                    "items": {
                      "type": "string"
                    }
                  },
                  "vaccinations": {
                    "type": "array",
                    "description": "Kindly refer to the [glossary](https://pneumacare.readme.io/reference/glossary#vaccinations) for more information.",
                    "items": {
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Which vaccination",
                          "default": "COVID-19"
                        },
                        "period": {
                          "type": "string",
                          "description": "When did the user take the vaccination. (Month and Year)",
                          "default": "July 2021"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "medications": {
                    "type": "array",
                    "description": "List of medications the user is currently on. Refer to [glossary](https://pneumacare.readme.io/reference/glossary#medications) for more information.",
                    "default": [
                      "Loratadine",
                      "Vitamin C"
                    ],
                    "items": {
                      "type": "string"
                    }
                  },
                  "transfusion_history": {
                    "type": "array",
                    "description": "Refer to the glossary",
                    "items": {
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Type of transfusion e.g. Red Blood Cell, Plasma, Full Blood et.c",
                          "default": "Red Blood Cell"
                        },
                        "period": {
                          "type": "string",
                          "description": "When was this done?",
                          "default": "June 1991"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "surgeries": {
                    "type": "array",
                    "description": "Refer to [glossary](https://pneumacare.readme.io/reference/glossary#surgeries)",
                    "items": {
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Type of transfusion e.g. Red Blood Cell, Plasma, Full Blood et.c",
                          "default": "Red Blood Cell"
                        },
                        "period": {
                          "type": "string",
                          "description": "When was this done?",
                          "default": "June 1991"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "blood_group": {
                    "type": "string",
                    "enum": [
                      "O+",
                      "O-",
                      "A+",
                      "A-",
                      "AB+",
                      "AB-",
                      "B+",
                      "B-"
                    ]
                  },
                  "genotype": {
                    "type": "string",
                    "enum": [
                      "AA",
                      "AS",
                      "AC",
                      "SS"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61332d511b787e0026bea8d5:61333d874e9054005c5783d3"
}
```