This example uses an extension to show the patient's birth sex.
Patient.id[0] | UKCore-Patient-Extension-BirthSex-Example |
Patient.extension[0].url[0] | https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex |
Patient.extension[0].valueCode[0] | F |
<Patient xmlns="http://hl7.org/fhir"> <id value="UKCore-Patient-Extension-BirthSex-Example" /> <!-- **************extension start************** --> <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex"> <valueCode value="F" /> </extension> <!-- **************extension end************** --> </Patient>
{ "resourceType": "Patient", "id": "UKCore-Patient-Extension-BirthSex-Example", "extension": [ { "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex", "valueCode": "F" } ] }