@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/cda/us/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.5.4> a fhir:StructureDefinition;
  fhir:nodeRole fhir:treeRoot;
  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:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Minimum and Maximum # of times the the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-2.16.840.1.113883.10.20.22.5.4-definitions.html#TS\">TS</a><a name=\"TS\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: black; null\" title=\"This element has or is affected by some invariants (81-10127, 81-10128, 81-10129, 81-10130)\">I</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-TS.html\">TS</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-weight:bold\">81-10127: </span>**SHALL** be precise to the day (CONF:81-10127).<br/><span style=\"font-weight:bold\">81-10128: </span>**SHOULD** be precise to the minute (CONF:81-10128).<br/><span style=\"font-weight:bold\">81-10129: </span>**MAY** be precise to the second (CONF:81-10129).<br/><span style=\"font-weight:bold\">81-10130: </span>If more precise than day, **SHOULD** include time-zone offset (CONF:81-10130).</td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
  ];
  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"^^xsd:dateTime];
  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"^^xsd:boolean];
  fhir:StructureDefinition.type [ fhir:value "TS"];
  fhir:StructureDefinition.baseDefinition [
     fhir:value "http://hl7.org/fhir/cda/StructureDefinition/TS";
     fhir:link <http://hl7.org/fhir/cda/StructureDefinition/TS>
  ];
  fhir:StructureDefinition.derivation [ fhir:value "constraint"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.snapshot.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.valueCode [ 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"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Base" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10127" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "**SHALL** be precise to the day (CONF:81-10127)." ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10128" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "**SHOULD** be precise to the minute (CONF:81-10128)." ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10129" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "**MAY** be precise to the second (CONF:81-10129)." ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10130" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If more precise than day, **SHOULD** include time-zone offset (CONF:81-10130)." ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ]
     ], [
       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"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "ANY.nullFlavor" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-NullFlavor";
           fhir:link <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.valueString [ 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"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "TS.value" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.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"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "TS.inclusive" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]
       ]
     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "TS" ];
       fhir:ElementDefinition.path [ fhir:value "TS" ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10127" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "**SHALL** be precise to the day (CONF:81-10127)." ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10128" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "**SHOULD** be precise to the minute (CONF:81-10128)." ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10129" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "**MAY** be precise to the second (CONF:81-10129)." ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.constraint.key [ fhir:value "81-10130" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If more precise than day, **SHOULD** include time-zone offset (CONF:81-10130)." ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/cda/us/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.5.4.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl .

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

