STU3 Candidate

This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). 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

Raw Turtle, JSON-LD

Patient gender represented as an data element

@prefix fhir: <http://hl7.org/fhir/> .
@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      \n      \n      \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.publisher [ fhir:value "DCP"];
  fhir:DataElement.name [ fhir:value "Gender Code"];
  fhir:DataElement.element [
     fhir:index 0;
     fhir:extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/minLength" ];
       fhir:Extension.valueInteger [ fhir:value "1"^^xsd:int ]
     ], [
       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.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:int ];
     fhir:ElementDefinition.binding [
       fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
       fhir:ElementDefinition.binding.valueSetReference [
         fhir: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" ]
       ]
     ]
  ] .

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


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.