DHIS2 Example FHIR Implementation Guide
1.0.0 - ci-build International flag

DHIS2 Example FHIR Implementation Guide, published by DHIS2. This is not an authorized publication; it is the continuous build for version 1.0.0). This version is based on the current content of https://github.com/JohanGHole/alldevs-demo-ig and changes regularly. See the Directory of published versions

Logical Model: MDOptionSet - TTL Profile

Draft as of 2023-09-28

TTL representation of the d2-md-option-set logical model.

Raw ttl | Download


@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 -------------------------------------------------------------------

 a fhir:StructureDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "d2-md-option-set"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>"
  ] ; # 
  fhir:url [ fhir:v "https://dhis2.org/StructureDefinition/d2-md-option-set"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "MDOptionSet"] ; # 
  fhir:title [ fhir:v "DHIS2 Metadata: OptionSet"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2023-09-28T13:33:49+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "DHIS2"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "DHIS2" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://dhis2.org" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "integration@dhis2.org" ]     ] )
  ] [
fhir:name [ fhir:v "Johan Hole" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "Johan@Devotta.no" ] ;
fhir:use [ fhir:v "work" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "DHIS2 Metadata: OptionSet"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ] ;
fhir:display [ fhir:v "World" ]     ] )
  ] ) ; # 
  fhir:fhirVersion [ fhir:v "4.0.1"] ; # 
  fhir:mapping ( [
fhir:identity [ fhir:v "rim" ] ;
fhir:uri [ fhir:v "http://hl7.org/v3"^^xsd:anyURI ] ;
fhir:name [ fhir:v "RIM Mapping" ]
  ] ) ; # 
  fhir:kind [ fhir:v "logical"] ; # 
  fhir:abstract [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:type [ fhir:v "https://dhis2.org/StructureDefinition/d2-md-option-set"^^xsd:anyURI] ; # 
  fhir:baseDefinition [
fhir:v "http://hl7.org/fhir/StructureDefinition/Base"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Base>
  ] ; # 
  fhir:derivation [ fhir:v "specialization"] ; # 
  fhir:snapshot [
    ( fhir:element [
fhir:id [ fhir:v "d2-md-option-set" ] ;
fhir:path [ fhir:v "d2-md-option-set" ] ;
fhir:short [ fhir:v "DHIS2 Metadata: OptionSet" ] ;
fhir:definition [ fhir:v "DHIS2 Metadata: OptionSet" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Base" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
fhir:isModifier [ fhir:v "false"^^xsd:boolean ]     ] [
fhir:id [ fhir:v "d2-md-option-set.id" ] ;
fhir:path [ fhir:v "d2-md-option-set.id" ] ;
fhir:short [ fhir:v "Unique UID for option set" ] ;
fhir:definition [ fhir:v "Unique UID for option set" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.id" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.code" ] ;
fhir:path [ fhir:v "d2-md-option-set.code" ] ;
fhir:short [ fhir:v "Unique CODE for option set" ] ;
fhir:definition [ fhir:v "Unique CODE for option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.code" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.href" ] ;
fhir:path [ fhir:v "d2-md-option-set.href" ] ;
fhir:short [ fhir:v "Unique URL where the option set is available from" ] ;
fhir:definition [ fhir:v "Unique URL where the option set is available from" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.href" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.name" ] ;
fhir:path [ fhir:v "d2-md-option-set.name" ] ;
fhir:short [ fhir:v "Name of option set" ] ;
fhir:definition [ fhir:v "Name of option set" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.name" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.shortName" ] ;
fhir:path [ fhir:v "d2-md-option-set.shortName" ] ;
fhir:short [ fhir:v "Short name of option set" ] ;
fhir:definition [ fhir:v "Short name of option set" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.shortName" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.description" ] ;
fhir:path [ fhir:v "d2-md-option-set.description" ] ;
fhir:short [ fhir:v "Description of option set" ] ;
fhir:definition [ fhir:v "Description of option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.description" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.options" ] ;
fhir:path [ fhir:v "d2-md-option-set.options" ] ;
fhir:short [ fhir:v "programs associated with this option set" ] ;
fhir:definition [ fhir:v "programs associated with this option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.options" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "https://dhis2.org/StructureDefinition/d2-md-option"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.attributeValues" ] ;
fhir:path [ fhir:v "d2-md-option-set.attributeValues" ] ;
fhir:short [ fhir:v "additional attributes that are in this option set" ] ;
fhir:definition [ fhir:v "additional attributes that are in this option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option-set.attributeValues" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ]       ] ;
      ( fhir:type [
fhir:code [ fhir:v "https://dhis2.org/StructureDefinition/d2-md-attribute-value"^^xsd:anyURI ]       ] )     ] )
  ] ; # 
  fhir:differential [
    ( fhir:element [
fhir:id [ fhir:v "d2-md-option-set" ] ;
fhir:path [ fhir:v "d2-md-option-set" ] ;
fhir:short [ fhir:v "DHIS2 Metadata: OptionSet" ] ;
fhir:definition [ fhir:v "DHIS2 Metadata: OptionSet" ]     ] [
fhir:id [ fhir:v "d2-md-option-set.id" ] ;
fhir:path [ fhir:v "d2-md-option-set.id" ] ;
fhir:short [ fhir:v "Unique UID for option set" ] ;
fhir:definition [ fhir:v "Unique UID for option set" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.code" ] ;
fhir:path [ fhir:v "d2-md-option-set.code" ] ;
fhir:short [ fhir:v "Unique CODE for option set" ] ;
fhir:definition [ fhir:v "Unique CODE for option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.href" ] ;
fhir:path [ fhir:v "d2-md-option-set.href" ] ;
fhir:short [ fhir:v "Unique URL where the option set is available from" ] ;
fhir:definition [ fhir:v "Unique URL where the option set is available from" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
      ( fhir:type [
fhir:code [ fhir:v "Identifier"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.name" ] ;
fhir:path [ fhir:v "d2-md-option-set.name" ] ;
fhir:short [ fhir:v "Name of option set" ] ;
fhir:definition [ fhir:v "Name of option set" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.shortName" ] ;
fhir:path [ fhir:v "d2-md-option-set.shortName" ] ;
fhir:short [ fhir:v "Short name of option set" ] ;
fhir:definition [ fhir:v "Short name of option set" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.description" ] ;
fhir:path [ fhir:v "d2-md-option-set.description" ] ;
fhir:short [ fhir:v "Description of option set" ] ;
fhir:definition [ fhir:v "Description of option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
      ( fhir:type [
fhir:code [ fhir:v "string"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.options" ] ;
fhir:path [ fhir:v "d2-md-option-set.options" ] ;
fhir:short [ fhir:v "programs associated with this option set" ] ;
fhir:definition [ fhir:v "programs associated with this option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
      ( fhir:type [
fhir:code [ fhir:v "https://dhis2.org/StructureDefinition/d2-md-option"^^xsd:anyURI ]       ] )     ] [
fhir:id [ fhir:v "d2-md-option-set.attributeValues" ] ;
fhir:path [ fhir:v "d2-md-option-set.attributeValues" ] ;
fhir:short [ fhir:v "additional attributes that are in this option set" ] ;
fhir:definition [ fhir:v "additional attributes that are in this option set" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
      ( fhir:type [
fhir:code [ fhir:v "https://dhis2.org/StructureDefinition/d2-md-attribute-value"^^xsd:anyURI ]       ] )     ] )
  ] . #