Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example Patient/patient-example-sex-and-gender (Turtle)

Patient Administration Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Patient, Practitioner, RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification)

Transgender Person Example

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

[a fhir:Patient;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "patient-example-sex-and-gender"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Patricia Roth </b> male, DoB: 1974-12-25 ( Medical record number: 12345 (USUAL))</p></div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity" ];
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "value" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           a sct:446141000124107;
           fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
           fhir:Coding.code [ fhir:value "446141000124107" ];
           fhir:Coding.display [ fhir:value "Identifies as female gender (finding)" ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "period" ];
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2001-05-06"^^xsd:date ]
       ]
     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "comment" ];
       fhir:Extension.valueString [ fhir:value "Patient transitioned from male to female in 2001." ]
     ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/individual-pronouns" ];
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "value" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           a loinc:LA29519-8;
           fhir:Coding.system [ fhir:value "http://loinc.org" ];
           fhir:Coding.code [ fhir:value "LA29519-8" ];
           fhir:Coding.display [ fhir:value "she/her/her/hers/herself" ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "period" ];
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2001-05-06"^^xsd:date ]
       ]
     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "comment" ];
       fhir:Extension.valueString [ fhir:value "Patient transitioned from male to female in 2001." ]
     ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender" ];
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "value" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/administrative-gender" ];
           fhir:Coding.code [ fhir:value "male" ];
           fhir:Coding.display [ fhir:value "Male" ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "internationalEquivalent" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/icaosex" ];
           fhir:Coding.code [ fhir:value "M" ];
           fhir:Coding.display [ fhir:value "Male" ]
         ]
       ]
     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "type" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           a loinc:76689-9;
           fhir:Coding.system [ fhir:value "http://loinc.org" ];
           fhir:Coding.code [ fhir:value "76689-9" ];
           fhir:Coding.display [ fhir:value "Sex Assigned At Birth" ]
         ]
       ]
     ], [
       fhir:index 3;
       fhir:Extension.url [ fhir:value "effectivePeriod" ];
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "1974-12-25"^^xsd:date ]
       ]
     ], [
       fhir:index 4;
       fhir:Extension.url [ fhir:value "acquisitionDate" ];
       fhir:Extension.valueDateTime [ fhir:value "2005-12-06"^^xsd:date ]
     ], [
       fhir:index 5;
       fhir:Extension.url [ fhir:value "sourceDocument" ];
       fhir:Extension.valueCodeableReference [
         fhir:CodeableReference.reference [
           fhir:Reference.reference [ fhir:value "DocumentReference/1" ]
         ]
       ]
     ], [
       fhir:index 6;
       fhir:Extension.url [ fhir:value "sourceField" ];
       fhir:Extension.valueString [ fhir:value "SEX" ]
     ], [
       fhir:index 7;
       fhir:Extension.url [ fhir:value "jurisdiction" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.usps.com/" ];
           fhir:Coding.code [ fhir:value "OH" ];
           fhir:Coding.display [ fhir:value "Ohio" ]
         ]
       ]
     ], [
       fhir:index 8;
       fhir:Extension.url [ fhir:value "comment" ];
       fhir:Extension.valueString [ fhir:value "Patient transitioned from male to female in 2001, but their birth certificate still indicates male." ]
     ]
  ], [
     fhir:index 3;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender" ];
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "value" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://hl7.org/fhir/administrative-gender" ];
           fhir:Coding.code [ fhir:value "male" ];
           fhir:Coding.display [ fhir:value "Male" ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "internationalEquivalent" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/icaosex" ];
           fhir:Coding.code [ fhir:value "M" ];
           fhir:Coding.display [ fhir:value "Male" ]
         ]
       ]
     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "type" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://local-code-system.org/recorded-sex-or-gender-type" ];
           fhir:Coding.code [ fhir:value "insurance-card" ];
           fhir:Coding.display [ fhir:value "Insurance Card" ]
         ]
       ]
     ], [
       fhir:index 3;
       fhir:Extension.url [ fhir:value "effectivePeriod" ];
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2021-05-25"^^xsd:date ]
       ]
     ], [
       fhir:index 4;
       fhir:Extension.url [ fhir:value "acquisitionDate" ];
       fhir:Extension.valueDateTime [ fhir:value "2021-06-06"^^xsd:date ]
     ], [
       fhir:index 5;
       fhir:Extension.url [ fhir:value "sourceDocument" ];
       fhir:Extension.valueCodeableReference [
         fhir:CodeableReference.reference [
           fhir:Reference.reference [ fhir:value "DocumentReference/2" ]
         ]
       ]
     ], [
       fhir:index 6;
       fhir:Extension.url [ fhir:value "sourceField" ];
       fhir:Extension.valueString [ fhir:value "SEX" ]
     ], [
       fhir:index 7;
       fhir:Extension.url [ fhir:value "jurisdiction" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://local-code-system.org/recorded-sex-or-gender-jurisdiction" ];
           fhir:Coding.code [ fhir:value "ICCA-P" ];
           fhir:Coding.display [ fhir:value "Indigo Crucifix Cobalt Aegis Payer" ]
         ]
       ]
     ], [
       fhir:index 8;
       fhir:Extension.url [ fhir:value "comment" ];
       fhir:Extension.valueString [ fhir:value "Patient transitioned from male to female in 2001, but their insurance card still indicates male." ]
     ]
  ], [
     fhir:index 4;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender" ];
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "value" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://ohio.example.gov/drivers-license-sex" ];
           fhir:Coding.code [ fhir:value "M" ];
           fhir:Coding.display [ fhir:value "Male" ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "internationalEquivalent" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/icaosex" ];
           fhir:Coding.code [ fhir:value "M" ];
           fhir:Coding.display [ fhir:value "Male" ]
         ]
       ]
     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "type" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://jurisdiction-specific.example.com/document-type-code-system" ];
           fhir:Coding.code [ fhir:value "drivers-license" ];
           fhir:Coding.display [ fhir:value "Driver's License" ]
         ]
       ]
     ], [
       fhir:index 3;
       fhir:Extension.url [ fhir:value "effectivePeriod" ];
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "1974-12-25"^^xsd:date ]
       ]
     ], [
       fhir:index 4;
       fhir:Extension.url [ fhir:value "acquisitionDate" ];
       fhir:Extension.valueDateTime [ fhir:value "2005-12-06"^^xsd:date ]
     ], [
       fhir:index 5;
       fhir:Extension.url [ fhir:value "sourceDocument" ];
       fhir:Extension.valueCodeableReference [
         fhir:CodeableReference.reference [
           fhir:Reference.reference [ fhir:value "DocumentReference/1" ]
         ]
       ]
     ], [
       fhir:index 6;
       fhir:Extension.url [ fhir:value "jurisdiction" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "https://www.usps.com/" ];
           fhir:Coding.code [ fhir:value "OH" ];
           fhir:Coding.display [ fhir:value "Ohio" ]
         ]
       ]
     ], [
       fhir:index 7;
       fhir:Extension.url [ fhir:value "comment" ];
       fhir:Extension.valueString [ fhir:value "Patient transitioned from male to female in 2001, but their driver's license still indicates male." ]
     ]
  ], [
     fhir:index 5;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/patient-sexForClinicalUse" ];
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "value" ];
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/sex-for-clinical-use" ];
           fhir:Coding.code [ fhir:value "specified" ];
           fhir:Coding.display [ fhir:value "Specified sex for clinical use" ]
         ]
       ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "period" ];
       fhir:Extension.valuePeriod [
         fhir:Period.start [ fhir:value "2002-07-13"^^xsd:date ]
       ]
     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "comment" ];
       fhir:Extension.valueString [ fhir:value "Patient transitioned from male to female in 2001." ]
     ], [
       fhir:index 3;
       fhir:Extension.url [ fhir:value "supportingInfo" ];
       fhir:Extension.valueCodeableReference [
         fhir:CodeableReference.reference [
           fhir:Reference.reference [ fhir:value "Observation/1" ]
         ]
       ]
     ], [
       fhir:index 4;
       fhir:Extension.url [ fhir:value "supportingInfo" ];
       fhir:Extension.valueCodeableReference [
         fhir:CodeableReference.reference [
           fhir:Reference.reference [ fhir:value "MedicationUsage/2" ]
         ]
       ]
     ]
  ];
  fhir:Patient.identifier [
     fhir:index 0;
     fhir:Identifier.use [ fhir:value "usual" ];
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
         fhir:Coding.code [ fhir:value "MR" ]
       ]
     ];
     fhir:Identifier.system [ fhir:value "urn:oid:1.2.36.146.595.217.0.1" ];
     fhir:Identifier.value [ fhir:value "12345" ]
  ];
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "official" ];
     fhir:HumanName.family [ fhir:value "Roth" ];
     fhir:HumanName.given [
       fhir:value "Patrick";
       fhir:index 0
     ]
  ], [
     fhir:index 1;
     fhir:HumanName.use [ fhir:value "usual" ];
     fhir:HumanName.family [ fhir:value "Roth" ];
     fhir:HumanName.given [
       fhir:value "Patricia";
       fhir:index 0
     ]
  ], [
     fhir:index 2;
     fhir:HumanName.use [ fhir:value "nickname" ];
     fhir:HumanName.given [
       fhir:value "Pat";
       fhir:index 0
     ]
  ];
  fhir:Patient.gender [ fhir:value "male"];
  fhir:Patient.birthDate [ fhir:value "1974-12-25"^^xsd:date];
  fhir:Patient.deceasedBoolean [ fhir:value "false"^^xsd:boolean];
  fhir:Patient.managingOrganization [
     fhir:Reference.reference [ fhir:value "Organization/1" ]
  ]] .

# - ontology header ------------------------------------------------------------

[a owl:Ontology;
  owl:imports fhir:fhir.ttl] .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.