@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

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

[] a fhir:StructureDefinition;
  fhir:Resource.id [ fhir:value "2.16.840.1.113883.10.20.22.5.4"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ]
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.5.4"];
  fhir:StructureDefinition.identifier [
     fhir:index 0;
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.10.20.22.5.4" ]
  ];
  fhir:StructureDefinition.version [ fhir:value "2.2"];
  fhir:StructureDefinition.name [ fhir:value "USRealmDateandTimeDTMUSFIELDED"];
  fhir:StructureDefinition.title [ fhir:value "US Realm Date and Time (DTM.US.FIELDED)"];
  fhir:StructureDefinition.status [ fhir:value "active"];
  fhir:StructureDefinition.date [ fhir:value "2022-05-13T15:50:12+00:00"];
  fhir:StructureDefinition.publisher [ fhir:value "Health Level Seven"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "HL7 International - Structured Documents" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/structure" ]
     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "The US Realm Clinical Document Date and Time datatype flavor records date and time information. If no time zone offset is provided, you can make no assumption about time, unless you have made a local exchange agreement.\n\nThis data type uses the same rules as US Realm Date and Time (DT.US.FIELDED), but is used with elements having a datatype of TS."];
  fhir:StructureDefinition.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:StructureDefinition.fhirVersion [ fhir:value "4.0.1"];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.abstract [ fhir:value "false"];
  fhir:StructureDefinition.type [ fhir:value "TS"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/TS"];
  fhir:StructureDefinition.derivation [ fhir:value "constraint"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "TS" ];
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-timeformat" ];
         fhir:Extension.value [ fhir:value "YYYYMMDDHHMMSS.UUUU[+|-ZZzz]" ]
       ];
       fhir:ElementDefinition.path [ fhir:value "TS" ];
       fhir:ElementDefinition.definition [ fhir:value "A quantity specifying a point on the axis of natural time. A point in time is most often represented as a calendar expression." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Base" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "81-10127" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "**SHALL** be precise to the day (CONF:81-10127)." ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "81-10128" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "**SHOULD** be precise to the minute (CONF:81-10128)." ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.key [ fhir:value "81-10129" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "**MAY** be precise to the second (CONF:81-10129)." ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.key [ fhir:value "81-10130" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "If more precise than day, **SHOULD** include time-zone offset (CONF:81-10130)." ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "TS.nullFlavor" ];
       fhir:ElementDefinition.path [ fhir:value "TS.nullFlavor" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.label [ fhir:value "Exceptional Value Detail" ];
       fhir:ElementDefinition.definition [ fhir:value "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "ANY.nullFlavor" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://terminology.hl7.org/ValueSet/v3-NullFlavor" ]
       ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "TS.value" ];
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://www.healthintersections.com.au/fhir/StructureDefinition/elementdefinition-dateformat" ];
         fhir:Extension.value [ fhir:value "v3" ]
       ];
       fhir:ElementDefinition.path [ fhir:value "TS.value" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.definition [ fhir:value "A quantity specifying a point on the axis of natural time. A point in time is most often represented as a calendar expression." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "TS.value" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "dateTime" ]
       ]
     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "TS.inclusive" ];
       fhir:ElementDefinition.path [ fhir:value "TS.inclusive" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.definition [ fhir:value "Specifies whether the limit is included in the interval (interval is closed) or excluded from the interval (interval is open)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "TS.inclusive" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "boolean" ]
       ]
     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "TS" ];
       fhir:ElementDefinition.path [ fhir:value "TS" ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "81-10127" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "**SHALL** be precise to the day (CONF:81-10127)." ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "81-10128" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "**SHOULD** be precise to the minute (CONF:81-10128)." ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.key [ fhir:value "81-10129" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "**MAY** be precise to the second (CONF:81-10129)." ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.key [ fhir:value "81-10130" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "If more precise than day, **SHOULD** include time-zone offset (CONF:81-10130)." ]
       ]
     ]
  ] .

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

