@prefix fhir: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix xsd: . # - resource ------------------------------------------------------------------- a fhir:StructureDefinition ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "DP-dateTime"] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "

Generated Narrative: StructureDefinition DP-dateTime

\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" dateTime C0..*dateTimePrimitive Type dateTime
ksa-dateTime-1: Must provide a complete date YYYY-MM-DD or DateTime string
\".\"\".\"\".\" value 0..1dateTimePrimitive value for dateTime
Max Length:29

\"doco\" Documentation for this format
"^^rdf:XMLLiteral ] ; # fhir:url [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.3.0"] ; # fhir:name [ fhir:v "DP_dateTime"] ; # fhir:title [ fhir:v "DP_dateTime"] ; # fhir:status [ fhir:v "draft"] ; # fhir:date [ fhir:v "2025-06-23T22:09:21+03:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "HL7 Saudi Arabia"] ; # fhir:contact ( [ fhir:name [ fhir:v "HL7 Saudi Arabia" ] ; fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://test-project.org/test-publisher" ] ] ) ] ) ; # fhir:description [ fhir:v "DateTime datatype length limited to 29 characters."] ; # fhir:jurisdiction ( [ fhir:coding ( [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ; fhir:code [ fhir:v "SA" ] ; fhir:display [ fhir:v "Saudi Arabia" ] ] ) ] ) ; # fhir:fhirVersion [ fhir:v "4.0.1"] ; # fhir:kind [ fhir:v "primitive-type"] ; # fhir:abstract [ fhir:v false] ; # fhir:type [ fhir:v "dateTime"^^xsd:anyURI] ; # fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/dateTime"^^xsd:anyURI ; fhir:link ] ; # fhir:derivation [ fhir:v "constraint"] ; # fhir:snapshot [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "4.0.1" ] ] ) ; fhir:element ( [ fhir:id [ fhir:v "dateTime" ] ; fhir:path [ fhir:v "dateTime" ] ; fhir:short [ fhir:v "Primitive Type dateTime" ] ; fhir:definition [ fhir:v "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "dateTime" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; 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:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link ] ] [ fhir:key [ fhir:v "ksa-dateTime-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must provide a complete date YYYY-MM-DD or DateTime string" ] ; fhir:expression [ fhir:v "toString().length() = 10 or toString().length() >= 19" ] ; fhir:source [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime"^^xsd:anyURI ; fhir:link ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ] [ fhir:id [ fhir:v "dateTime.id" ] ; fhir:path [ fhir:v "dateTime.id" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "xml:id (or equivalent in JSON)" ] ; fhir:definition [ fhir:v "unique id for the element within a resource (for internal references)" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ] [ fhir:id [ fhir:v "dateTime.extension" ] ; fhir:path [ fhir:v "dateTime.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension"^^xsd:anyURI ] ] ) ; 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:xpath [ fhir:v "@value|f:*|h:div" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ; fhir:link ] ] [ fhir:key [ fhir:v "ext-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ; fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ; fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link ] ] ) ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ] [ fhir:id [ fhir:v "dateTime.value" ] ; fhir:path [ fhir:v "dateTime.value" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Primitive value for dateTime" ] ; fhir:definition [ fhir:v "The actual value" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "dateTime.value" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ] ; fhir:value [ a fhir:url ; fhir:v "dateTime"^^xsd:anyURI ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/regex"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.DateTime"^^xsd:anyURI ] ] ) ; fhir:maxLength [ fhir:v 29 ] ; fhir:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v false ] ] ) ] ; # fhir:differential [ fhir:element ( [ fhir:id [ fhir:v "dateTime" ] ; fhir:path [ fhir:v "dateTime" ] ; fhir:constraint ( [ fhir:key [ fhir:v "ksa-dateTime-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "Must provide a complete date YYYY-MM-DD or DateTime string" ] ; fhir:expression [ fhir:v "toString().length() = 10 or toString().length() >= 19" ] ; fhir:source [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime"^^xsd:anyURI ; fhir:link ] ] ) ] [ fhir:id [ fhir:v "dateTime.value" ] ; fhir:path [ fhir:v "dateTime.value" ] ; fhir:maxLength [ fhir:v 29 ] ] ) ] . # # -------------------------------------------------------------------------------------