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

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

[] a fhir:StructureDefinition ;
  fhir:id [ fhir:v "USRealmDateandTimeDTUSFIELDED"] ;
  fhir:text [
     fhir:status [ fhir:v "extensions" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/logical-target" ] ;
     fhir:value [
       fhir:v "" ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/data-absent-reason" ] ;
         fhir:value [ fhir:v "not-applicable" ]
       ] )
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace" ] ;
     fhir:value [ fhir:v "urn:hl7-org:v3" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED"], [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED"] ;
  fhir:identifier ( [
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.10.20.22.5.3" ]
  ] [
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.10.20.22.5.3" ]
  ] ) ;
  fhir:version [ fhir:v "2.1"], [ fhir:v "2.1"] ;
  fhir:name [ fhir:v "USRealmDateandTimeDTUSFIELDED"], [ fhir:v "USRealmDateandTimeDTUSFIELDED"] ;
  fhir:title [ fhir:v "US Realm Date and Time (DT.US.FIELDED)"], [ fhir:v "US Realm Date and Time (DT.US.FIELDED)"] ;
  fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ;
  fhir:date [ fhir:v "2023-09-29T16:20:44+00:00"], [ fhir:v "2023-09-29T16:20:44+00:00"] ;
  fhir:publisher [ fhir:v "Health Level Seven"], [ fhir:v "Health Level Seven"] ;
  fhir:contact ( [
     fhir:name [ fhir:v "HL7 International - Structured Documents" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/structure" ]
     ] )
  ] [
     fhir:name [ fhir:v "HL7 International - Structured Documents" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/structure" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "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 (DTM.US.FIELDED),  but is used with elements having a datatype of IVL_TS."], [ fhir:v "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 (DTM.US.FIELDED),  but is used with elements having a datatype of IVL_TS."] ;
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166" ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166" ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] ) ;
  fhir:fhirVersion [ fhir:v "5.0.0"] ;
  fhir:mapping ( [
     fhir:identity [ fhir:v "rim" ] ;
     fhir:uri [ fhir:v "http://hl7.org/v3" ] ;
     fhir:name [ fhir:v "RIM Mapping" ]
  ] ) ;
  fhir:kind [ fhir:v "logical"] ;
  fhir:abstract [ fhir:v "false"] ;
  fhir:type [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/IVL_TS"] ;
  fhir:baseDefinition [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS"] ;
  fhir:derivation [ fhir:v "constraint"] ;
  fhir:snapshot [
     fhir:element ( [
       fhir:id [ fhir:v "IVL_TS" ] ;
       fhir:path [ fhir:v "IVL_TS" ] ;
       fhir:short [ fhir:v "Base for all types and resources" ] ;
       fhir:definition [ fhir:v "A quantity specifying a point on the axis of natural time. A point in time is most often represented as a calendar expression." ] ;
       fhir:min [ fhir:v "1" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Base" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [ ] ) ;
       fhir:constraint ( [
         fhir:key [ fhir:v "ele-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ]
       ] [
         fhir:key [ fhir:v "ivl-ts-center" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Center cannot co-exist with low or high" ] ;
         fhir:expression [ fhir:v "center.empty() or (low.empty() and high.empty())" ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS" ]
       ] [
         fhir:key [ fhir:v "81-10078" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "**SHALL** be precise to the day (CONF:81-10078)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] [
         fhir:key [ fhir:v "81-10079" ] ;
         fhir:severity [ fhir:v "warning" ] ;
         fhir:human [ fhir:v "**SHOULD** be precise to the minute (CONF:81-10079)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] [
         fhir:key [ fhir:v "81-10080" ] ;
         fhir:severity [ fhir:v "warning" ] ;
         fhir:human [ fhir:v "**MAY** be precise to the second (CONF:81-10080)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] [
         fhir:key [ fhir:v "81-10081" ] ;
         fhir:severity [ fhir:v "warning" ] ;
         fhir:human [ fhir:v "If more precise than day, **SHOULD** include time-zone offset (CONF:81-10081)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] ) ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:map [ fhir:v "n/a" ]
       ] )
     ] [
       fhir:id [ fhir:v "IVL_TS.nullFlavor" ] ;
       fhir:path [ fhir:v "IVL_TS.nullFlavor" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:label [ fhir:v "Exceptional Value Detail" ] ;
       fhir:definition [ fhir:v "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "ANY.nullFlavor" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-NullFlavor" ]
       ]
     ] [
       fhir:id [ fhir:v "IVL_TS.value" ] ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/elementdefinition-date-format" ] ;
         fhir:value [ fhir:v "YYYYMMDDHHMMSS.UUUU[+|-ZZzz]" ]
       ] ) ;
       fhir:path [ fhir:v "IVL_TS.value" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:definition [ fhir:v "A quantity specifying a point on the axis of natural time. A point in time is most often represented as a calendar expression." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "TS.value" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/ts-simple" ] )
       ] )
     ] [
       fhir:id [ fhir:v "IVL_TS.operator" ] ;
       fhir:path [ fhir:v "IVL_TS.operator" ] ;
       fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
       fhir:definition [ fhir:v "A code specifying whether the set component is included (union) or excluded (set-difference) from the set, or other set operations with the current set component and the set as constructed from the representation stream up to the current point." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "SXCM_TS.operator" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ] ;
         fhir:profile ( [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/cs-simple" ] )
       ] ) ;
       fhir:defaultValue [ fhir:v "I" ] ;
       fhir:binding [
         fhir:strength [ fhir:v "required" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-SetOperator" ]
       ]
     ] [
       fhir:id [ fhir:v "IVL_TS.low" ] ;
       fhir:path [ fhir:v "IVL_TS.low" ] ;
       fhir:label [ fhir:v "Low Boundary" ] ;
       fhir:definition [ fhir:v "This is the low limit of the interval." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "IVL_TS.low" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/IVXB-TS" ]
       ] )
     ] [
       fhir:id [ fhir:v "IVL_TS.center" ] ;
       fhir:path [ fhir:v "IVL_TS.center" ] ;
       fhir:label [ fhir:v "Central Value" ] ;
       fhir:definition [ fhir:v "The arithmetic mean of the interval (low plus high divided by 2). The purpose of distinguishing the center as a semantic property is for conversions of intervals from and to point values." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "IVL_TS.center" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/TS" ]
       ] )
     ] [
       fhir:id [ fhir:v "IVL_TS.width" ] ;
       fhir:path [ fhir:v "IVL_TS.width" ] ;
       fhir:label [ fhir:v "Width" ] ;
       fhir:definition [ fhir:v "The difference between high and low boundary. The purpose of distinguishing a width property is to handle all cases of incomplete information symmetrically. In any interval representation only two of the three properties high, low, and width need to be stated and the third can be derived." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "IVL_TS.width" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/PQ" ]
       ] )
     ] [
       fhir:id [ fhir:v "IVL_TS.high" ] ;
       fhir:path [ fhir:v "IVL_TS.high" ] ;
       fhir:label [ fhir:v "High Boundary" ] ;
       fhir:definition [ fhir:v "This is the high limit of the interval." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "IVL_TS.high" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "http://hl7.org/cda/stds/core/StructureDefinition/IVXB-TS" ]
       ] )
     ] )
  ] ;
  fhir:differential [
     fhir:element ( [
       fhir:id [ fhir:v "IVL_TS" ] ;
       fhir:path [ fhir:v "IVL_TS" ] ;
       fhir:constraint ( [
         fhir:key [ fhir:v "81-10078" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "**SHALL** be precise to the day (CONF:81-10078)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] [
         fhir:key [ fhir:v "81-10079" ] ;
         fhir:severity [ fhir:v "warning" ] ;
         fhir:human [ fhir:v "**SHOULD** be precise to the minute (CONF:81-10079)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] [
         fhir:key [ fhir:v "81-10080" ] ;
         fhir:severity [ fhir:v "warning" ] ;
         fhir:human [ fhir:v "**MAY** be precise to the second (CONF:81-10080)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] [
         fhir:key [ fhir:v "81-10081" ] ;
         fhir:severity [ fhir:v "warning" ] ;
         fhir:human [ fhir:v "If more precise than day, **SHOULD** include time-zone offset (CONF:81-10081)." ] ;
         fhir:source [ fhir:v "http://hl7.org/cda/us/ccda/StructureDefinition/USRealmDateandTimeDTUSFIELDED" ]
       ] )
     ] )
  ] .

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

