Patient
Get Patient
Gets a Patient.
GET
/medical/v1/patient/{id}
x-api-key*
curl --request GET \
--url https://api.sandbox.metriport.com/medical/v1/patient/{id} \
--header 'x-api-key: <x-api-key>'
Path Params
idrequired
string
The ID of the Patient.
Response
idrequired
string
The ID assigned to this Patient. This ID will be used to uniquely identify this Patient in medical documents.
firstNamerequired
string[]
The Patient’s first name(s).
lastNamerequired
string[]
The Patient’s last name(s).
dobrequired
string
The Patient’s date of birth (DOB), formatted YYYY-MM-DD
as per ISO 8601.
genderAtBirthrequired
string
The Patient’s gender at birth, can be one of M
or F
.
personalIdentifiers
PersonalIdentifier[]
An array of the Patient’s personal IDs, such as a driver’s license. May be empty.
addressrequired
Address[]
contact
Contact[]
facilityIdsrequired
string[]
Array of the IDs of the Facilities where the Patient is receiving care.
import { MetriportMedicalApi } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi("YOUR_API_KEY");
const patient = await metriport.getPatient("2.16.840.1.113883.3.666.777");
{
"id": "2.16.840.1.113883.3.666.777",
"firstName": "Jose",
"lastName": "Juarez",
"dob": "1951-05-05",
"genderAtBirth": "M",
"personalIdentifiers": [
{
"type": "driversLicense",
"state": "CA",
"value": "51227265"
}
],
"address": [{
"zip": "12345",
"city": "San Diego",
"state": "CA",
"country": "USA",
"addressLine1": "Guadalajara St"
}],
"contact": [{
"phone": "1234567899",
"email": "jose@domain.com"
}],
"facilityIds": [
"2.16.840.1.113883.3.666.5.2004.4.2005"
]
}
curl --request GET \
--url https://api.sandbox.metriport.com/medical/v1/patient/{id} \
--header 'x-api-key: <x-api-key>'
import { MetriportMedicalApi } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi("YOUR_API_KEY");
const patient = await metriport.getPatient("2.16.840.1.113883.3.666.777");