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: MDOption - TTL Profile

Draft as of 2023-09-28

TTL representation of the d2-md-option 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"] ; # 
  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"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "MDOption"] ; # 
  fhir:title [ fhir:v "DHIS2 Metadata: Option"] ; # 
  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: Option"] ; # 
  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"^^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" ] ;
fhir:path [ fhir:v "d2-md-option" ] ;
fhir:short [ fhir:v "DHIS2 Metadata: Option" ] ;
fhir:definition [ fhir:v "DHIS2 Metadata: Option" ] ;
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.id" ] ;
fhir:path [ fhir:v "d2-md-option.id" ] ;
fhir:short [ fhir:v "Unique UID for option" ] ;
fhir:definition [ fhir:v "Unique UID for option" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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.code" ] ;
fhir:path [ fhir:v "d2-md-option.code" ] ;
fhir:short [ fhir:v "Unique CODE for option" ] ;
fhir:definition [ fhir:v "Unique CODE for option" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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.href" ] ;
fhir:path [ fhir:v "d2-md-option.href" ] ;
fhir:short [ fhir:v "Unique URL where the option is available from" ] ;
fhir:definition [ fhir:v "Unique URL where the option is available from" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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.name" ] ;
fhir:path [ fhir:v "d2-md-option.name" ] ;
fhir:short [ fhir:v "Name of option" ] ;
fhir:definition [ fhir:v "Name of option" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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.shortName" ] ;
fhir:path [ fhir:v "d2-md-option.shortName" ] ;
fhir:short [ fhir:v "Short name of option" ] ;
fhir:definition [ fhir:v "Short name of option" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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.description" ] ;
fhir:path [ fhir:v "d2-md-option.description" ] ;
fhir:short [ fhir:v "Description of option" ] ;
fhir:definition [ fhir:v "Description of option" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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.attributeValues" ] ;
fhir:path [ fhir:v "d2-md-option.attributeValues" ] ;
fhir:short [ fhir:v "additional attributes that are in this option" ] ;
fhir:definition [ fhir:v "additional attributes that are in this option" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "d2-md-option.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" ] ;
fhir:path [ fhir:v "d2-md-option" ] ;
fhir:short [ fhir:v "DHIS2 Metadata: Option" ] ;
fhir:definition [ fhir:v "DHIS2 Metadata: Option" ]     ] [
fhir:id [ fhir:v "d2-md-option.id" ] ;
fhir:path [ fhir:v "d2-md-option.id" ] ;
fhir:short [ fhir:v "Unique UID for option" ] ;
fhir:definition [ fhir:v "Unique UID for option" ] ;
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.code" ] ;
fhir:path [ fhir:v "d2-md-option.code" ] ;
fhir:short [ fhir:v "Unique CODE for option" ] ;
fhir:definition [ fhir:v "Unique CODE for option" ] ;
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.href" ] ;
fhir:path [ fhir:v "d2-md-option.href" ] ;
fhir:short [ fhir:v "Unique URL where the option is available from" ] ;
fhir:definition [ fhir:v "Unique URL where the option 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.name" ] ;
fhir:path [ fhir:v "d2-md-option.name" ] ;
fhir:short [ fhir:v "Name of option" ] ;
fhir:definition [ fhir:v "Name of option" ] ;
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.shortName" ] ;
fhir:path [ fhir:v "d2-md-option.shortName" ] ;
fhir:short [ fhir:v "Short name of option" ] ;
fhir:definition [ fhir:v "Short name of option" ] ;
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.description" ] ;
fhir:path [ fhir:v "d2-md-option.description" ] ;
fhir:short [ fhir:v "Description of option" ] ;
fhir:definition [ fhir:v "Description of option" ] ;
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.attributeValues" ] ;
fhir:path [ fhir:v "d2-md-option.attributeValues" ] ;
fhir:short [ fhir:v "additional attributes that are in this option" ] ;
fhir:definition [ fhir:v "additional attributes that are in this option" ] ;
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 ]       ] )     ] )
  ] . #