createPatient
Generate a new patient record in Medplum FHIR servers by providing first name, last name, and birth date, with optional gender details.
Instructions
Creates a new patient resource. Requires first name, last name, and birth date.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
birthDate | Yes | The patient's birth date in YYYY-MM-DD format. | |
firstName | Yes | The patient's first name. | |
gender | No | The patient's gender (male, female, other, unknown). Optional. | |
lastName | Yes | The patient's last name. |
Input Schema (JSON Schema)
{
"properties": {
"birthDate": {
"description": "The patient's birth date in YYYY-MM-DD format.",
"type": "string"
},
"firstName": {
"description": "The patient's first name.",
"type": "string"
},
"gender": {
"description": "The patient's gender (male, female, other, unknown). Optional.",
"enum": [
"male",
"female",
"other",
"unknown"
],
"type": "string"
},
"lastName": {
"description": "The patient's last name.",
"type": "string"
}
},
"required": [
"firstName",
"lastName",
"birthDate"
],
"type": "object"
}