FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Dataelement-example.ttl

Orders and Observations Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle, JSON-LD

Patient gender represented as an data element

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

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

<http://hl7.org/fhir/DataElement/gender> a fhir:DataElement;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "gender"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n			<p>\n				<b>Gender Code</b>: The code representing the gender of a person\n      </p>\n			<table>\n				<tbody>\n					<tr>\n						<th>Code</th>\n						<th>Display</th>\n						<th>Definition</th>\n					</tr>\n					<tr>\n						<td>0</td>\n						<td>Unknown</td>\n						<td>Not known, not observed, not recorded, or refused.</td>\n					</tr>\n					<tr>\n						<td>1</td>\n						<td>Male</td>\n						<td>A person who belongs to the sex that normally produces sperm. The term is used to indicate biological sex distinctions, cultural gender role distinctions, or both.</td>\n					</tr>\n					<tr>\n						<td>2</td>\n						<td>Female</td>\n						<td>A person who belongs to the sex that normally produces ova. The term is used to indicate biological sex distinctions, or cultural gender role distinctions, or both.</td>\n					</tr>\n					<tr>\n						<td>3</td>\n						<td>Not specified</td>\n						<td>Not specified</td>\n					</tr>\n				</tbody>\n			</table>\n			<ul>\n				<li/>\n			</ul>\n		</div>"
  ];
  fhir:DomainResource.contained [
     a fhir:ValueSet;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "2179414" ];
     fhir:ValueSet.url [ fhir:value "http://example.org/2179414" ];
     fhir:ValueSet.version [ fhir:value "1.0" ];
     fhir:ValueSet.name [ fhir:value "Gender Code" ];
     fhir:ValueSet.status [ fhir:value "active" ];
     fhir:ValueSet.description [ fhir:value "All codes representing the gender of a person." ];
     fhir:ValueSet.compose [
       fhir:ValueSet.compose.include [
         fhir:index 0;
         fhir:ValueSet.compose.include.system [ fhir:value "http://example.ncit.nci.nih.gov" ];
         fhir:ValueSet.compose.include.concept [
           fhir:index 0;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "C17998" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Unknown" ]
         ], [
           fhir:index 1;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "C20197" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Male" ]
         ], [
           fhir:index 2;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "C16576" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Female" ]
         ], [
           fhir:index 3;
           fhir:ValueSet.compose.include.concept.code [ fhir:value "C38046" ];
           fhir:ValueSet.compose.include.concept.display [ fhir:value "Not specified" ]
         ]
       ]
     ]
  ], [
     a fhir:ValueSet;
     fhir:index 1;
     fhir:Resource.id [ fhir:value "2179414-permitted" ];
     fhir:ValueSet.status [ fhir:value "active" ];
     fhir:ValueSet.compose [
       fhir:ValueSet.compose.include [
         fhir:index 0;
         fhir:ValueSet.compose.include.system [ fhir:value "http://example.org/fhir/2179414" ]
       ]
     ]
  ], [
     a fhir:ConceptMap;
     fhir:index 2;
     fhir:Resource.id [ fhir:value "2179414-cm" ];
     fhir:ConceptMap.status [ fhir:value "active" ];
     fhir:ConceptMap.sourceReference [
       fhir:Reference.reference [ fhir:value "#2179414" ]
     ];
     fhir:ConceptMap.targetReference [
       fhir:Reference.reference [ fhir:value "#2179414-permitted" ]
     ];
     fhir:ConceptMap.group [
       fhir:index 0;
       fhir:ConceptMap.group.source [ fhir:value "http://example.org/fhir/2179414" ];
       fhir:ConceptMap.group.target [ fhir:value "http://example.org/fhir/2179414" ];
       fhir:ConceptMap.group.element [
         fhir:index 0;
         fhir:ConceptMap.group.element.code [ fhir:value "C17998" ];
         fhir:ConceptMap.group.element.target [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.code [ fhir:value "0" ];
           fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equal" ]
         ]
       ], [
         fhir:index 1;
         fhir:ConceptMap.group.element.code [ fhir:value "C20197" ];
         fhir:ConceptMap.group.element.target [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.code [ fhir:value "1" ];
           fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equal" ]
         ]
       ], [
         fhir:index 2;
         fhir:ConceptMap.group.element.code [ fhir:value "C16576" ];
         fhir:ConceptMap.group.element.target [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.code [ fhir:value "2" ];
           fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equal" ]
         ]
       ], [
         fhir:index 3;
         fhir:ConceptMap.group.element.code [ fhir:value "C38046" ];
         fhir:ConceptMap.group.element.target [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.code [ fhir:value "3" ];
           fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equal" ]
         ]
       ]
     ]
  ];
  fhir:DataElement.identifier [
     fhir:index 0;
     fhir:Identifier.value [ fhir:value "2179650" ]
  ];
  fhir:DataElement.version [ fhir:value "1.0"];
  fhir:DataElement.status [ fhir:value "active"];
  fhir:DataElement.date [ fhir:value "2016-01-01"^^xsd:date];
  fhir:DataElement.publisher [ fhir:value "DCP"];
  fhir:DataElement.name [ fhir:value "Gender Code"];
  fhir:DataElement.title [ fhir:value "Administrative gender"];
  fhir:DataElement.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "US" ]
     ]
  ];
  fhir:DataElement.mapping [
     fhir:index 0;
     fhir:DataElement.mapping.identity [ fhir:value "fhir" ];
     fhir:DataElement.mapping.uri [ fhir:value "http://hl7.org/fhir/api" ];
     fhir:DataElement.mapping.name [ fhir:value "Fast Healthcare Interoperable Resources (FHIR)" ]
  ];
  fhir:DataElement.element [
     fhir:index 0;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/minLength" ];
       fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]
     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-question" ];
       fhir:Extension.valueString [ fhir:value "Gender" ]
     ];
     fhir:ElementDefinition.path [ fhir:value "Gender" ];
     fhir:ElementDefinition.code [
       fhir:index 0;
       a loinc:46098-0;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "46098-0" ];
       fhir:Coding.display [ fhir:value "Sex" ]
     ];
     fhir:ElementDefinition.definition [ fhir:value "The code representing the gender of a person." ];
     fhir:ElementDefinition.type [
       fhir:index 0;
       fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]
     ];
     fhir:ElementDefinition.maxLength [ fhir:value "13"^^xsd:integer ];
     fhir:ElementDefinition.binding [
       fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
       fhir:ElementDefinition.binding.valueSetReference [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/11179-permitted-value-valueset" ];
           fhir:Extension.valueReference [
             fhir:Reference.reference [ fhir:value "#2179414-permitted" ]
           ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/11179-permitted-value-conceptmap" ];
           fhir:Extension.valueReference [
             fhir:Reference.reference [ fhir:value "#2179414-cm" ]
           ]
         ];
         fhir:Reference.reference [ fhir:value "#2179414" ]
       ]
     ];
     fhir:ElementDefinition.mapping [
       fhir:index 0;
       fhir:ElementDefinition.mapping.identity [ fhir:value "fhir" ];
       fhir:ElementDefinition.mapping.language [ fhir:value "application/xquery" ];
       fhir:ElementDefinition.mapping.map [ fhir:value "return f:/Patient/f:gender" ]
     ]
  ] .

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

<http://hl7.org/fhir/DataElement/gender.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://hl7.org/fhir/STU3/DataElement/gender.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.