STU 3 Candidate

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

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 xs: <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:DomainResource.contained [
     fhir:index 0;
     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:ValueSet.compose.include.concept [
             fhir:index 1;
             fhir:ValueSet.compose.include.concept.code [ fhir:value "C20197" ];
             fhir:ValueSet.compose.include.concept.display [ fhir:value "Male" ]           ];
           fhir:ValueSet.compose.include.concept [
             fhir:index 2;
             fhir:ValueSet.compose.include.concept.code [ fhir:value "C16576" ];
             fhir:ValueSet.compose.include.concept.display [ fhir:value "Female" ]           ];
           fhir:ValueSet.compose.include.concept [
             fhir:index 3;
             fhir:ValueSet.compose.include.concept.code [ fhir:value "C38046" ];
             fhir:ValueSet.compose.include.concept.display [ fhir:value "Not specified" ]           ]         ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 1;
     fhir:CodeSystem [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "2179414-permitted-cs" ];
       fhir:CodeSystem.url [ fhir:value "http://example.org/fhir/2179414" ];
       fhir:CodeSystem.status [ fhir:value "active" ];
       fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xs:boolean ];
       fhir:CodeSystem.content [ fhir:value "complete" ];
       fhir:CodeSystem.concept [
         fhir:index 0;
         fhir:CodeSystem.concept.code [ fhir:value "0" ]       ];
       fhir:CodeSystem.concept [
         fhir:index 1;
         fhir:CodeSystem.concept.code [ fhir:value "1" ]       ];
       fhir:CodeSystem.concept [
         fhir:index 2;
         fhir:CodeSystem.concept.code [ fhir:value "2" ]       ];
       fhir:CodeSystem.concept [
         fhir:index 3;
         fhir:CodeSystem.concept.code [ fhir:value "3" ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 2;
     fhir:ValueSet [
       fhir:index 0;
       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" ]         ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 3;
     fhir:ConceptMap [
       fhir:index 0;
       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.element [
         fhir:index 0;
         fhir:ConceptMap.element.code [ fhir:value "C17998" ];
         fhir:ConceptMap.element.target [
           fhir:index 0;
           fhir:ConceptMap.element.target.code [ fhir:value "0" ];
           fhir:ConceptMap.element.target.equivalence [ fhir:value "equal" ]         ]       ];
       fhir:ConceptMap.element [
         fhir:index 1;
         fhir:ConceptMap.element.code [ fhir:value "C20197" ];
         fhir:ConceptMap.element.target [
           fhir:index 0;
           fhir:ConceptMap.element.target.code [ fhir:value "1" ];
           fhir:ConceptMap.element.target.equivalence [ fhir:value "equal" ]         ]       ];
       fhir:ConceptMap.element [
         fhir:index 2;
         fhir:ConceptMap.element.code [ fhir:value "C16576" ];
         fhir:ConceptMap.element.target [
           fhir:index 0;
           fhir:ConceptMap.element.target.code [ fhir:value "2" ];
           fhir:ConceptMap.element.target.equivalence [ fhir:value "equal" ]         ]       ];
       fhir:ConceptMap.element [
         fhir:index 3;
         fhir:ConceptMap.element.code [ fhir:value "C38046" ];
         fhir:ConceptMap.element.target [
           fhir:index 0;
           fhir:ConceptMap.element.target.code [ fhir:value "3" ];
           fhir:ConceptMap.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.useContext [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/FBPP" ];
       fhir:Coding.display [ fhir:value "FBPP Pooled Database" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 1;
       fhir:Coding.system [ fhir:value "http://example.org/PhenX" ];
       fhir:Coding.display [ fhir:value "Demographics" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 2;
       fhir:Coding.system [ fhir:value "http://example.org/EligibilityCriteria" ];
       fhir:Coding.display [ fhir:value "Pt. Administrative" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 3;
       fhir:Coding.system [ fhir:value "http://example.org/UAMSClinicalResearch" ];
       fhir:Coding.display [ fhir:value "UAMS New CDEs" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 4;
       fhir:Coding.system [ fhir:value "http://example.org/PhenX" ];
       fhir:Coding.display [ fhir:value "Substance Abuse and " ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 5;
       fhir:Coding.system [ fhir:value "http://example.org/Category" ];
       fhir:Coding.display [ fhir:value "CSAERS Adverse Event" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 6;
       fhir:Coding.system [ fhir:value "http://example.org/PhenX" ];
       fhir:Coding.display [ fhir:value "Core: Tier 1" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 7;
       fhir:Coding.system [ fhir:value "http://example.org/Category" ];
       fhir:Coding.display [ fhir:value "Case Report Forms" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 8;
       fhir:Coding.system [ fhir:value "http://example.org/Category" ];
       fhir:Coding.display [ fhir:value "CSAERS Review Set" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 9;
       fhir:Coding.system [ fhir:value "http://example.org/Demonstration%20Applications" ];
       fhir:Coding.display [ fhir:value "CIAF" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 10;
       fhir:Coding.system [ fhir:value "http://example.org/NIDA%20CTN%20Usage" ];
       fhir:Coding.display [ fhir:value "Clinical Research" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 11;
       fhir:Coding.system [ fhir:value "http://example.org/NIDA%20CTN%20Usage" ];
       fhir:Coding.display [ fhir:value "Electronic Health Re" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 12;
       fhir:Coding.system [ fhir:value "http://example.org/Condition" ];
       fhir:Coding.display [ fhir:value "Barretts Esophagus" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 13;
       fhir:Coding.system [ fhir:value "http://example.org/Condition" ];
       fhir:Coding.display [ fhir:value "Bladder Cancer" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 14;
       fhir:Coding.system [ fhir:value "http://example.org/Condition" ];
       fhir:Coding.display [ fhir:value "Oral Leukoplakia" ]     ];
     fhir:CodeableConcept.coding [
       fhir:index 15;
       fhir:Coding.system [ fhir:value "http://example.org/Condition" ];
       fhir:Coding.display [ fhir:value "Sulindac for Breast" ]     ]
  ];
  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"^^xs:int ]     ];
     fhir:Element.extension [
       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"^^xs:int ];
     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:Element.extension [
           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.