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

Generated Narrative: StructureDefinition DP-Money-SAR

\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Money 0..*MoneyAn amount of economic utility in some recognized currency
\".\"\".\"\".\" value 1..1DP_decimalNumerical value (with implicit precision)
\".\"\".\"\".\" currency 1..1DP_codeISO 4217 Currency Code
Required Pattern: SAR

\"doco\" Documentation for this format
"^^rdf:XMLLiteral ] ; # fhir:url [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.3.0"] ; # fhir:name [ fhir:v "DP_Money_SAR"] ; # fhir:title [ fhir:v "DP_Money_SAR"] ; # 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 "Money datatype requiring currency=SAR and the value."] ; # 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:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:uri [ fhir:v "http://hl7.org/v3"^^xsd:anyURI ] ; fhir:name [ fhir:v "RIM Mapping" ] ] [ fhir:identity [ fhir:v "v2" ] ; fhir:uri [ fhir:v "http://hl7.org/v2"^^xsd:anyURI ] ; fhir:name [ fhir:v "HL7 v2 Mapping" ] ] ) ; # fhir:kind [ fhir:v "complex-type"] ; # fhir:abstract [ fhir:v false] ; # fhir:type [ fhir:v "Money"^^xsd:anyURI] ; # fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/Money"^^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 "Money" ] ; fhir:path [ fhir:v "Money" ] ; fhir:short [ fhir:v "An amount of economic utility in some recognized currency" ] ; fhir:definition [ fhir:v "An amount of economic utility in some recognized currency." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Money" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ] ; fhir:condition ( [ fhir:v "ele-1" ] ) ; 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:isModifier [ fhir:v false ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "MO" ] ] ) ] [ fhir:id [ fhir:v "Money.id" ] ; fhir:path [ fhir:v "Money.id" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; 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:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Money.extension" ] ; fhir:path [ fhir:v "Money.extension" ] ; fhir:slicing [ fhir:discriminator ( [ fhir:type [ fhir:v "value" ] ; fhir:path [ fhir:v "url" ] ] ) ; fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ; fhir:rules [ fhir:v "open" ] ] ; 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 element. 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:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Money.value" ] ; fhir:path [ fhir:v "Money.value" ] ; fhir:short [ fhir:v "Numerical value (with implicit precision)" ] ; fhir:definition [ fhir:v "Numerical value (with implicit precision)." ] ; fhir:comment [ fhir:v "Monetary values have their own rules for handling precision (refer to standard accounting text books)." ] ; fhir:requirements [ fhir:v "The amount of the currency. The value includes an implicit precision in the presentation of the value." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Money.value" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "decimal"^^xsd:anyURI ] ; fhir:profile ( [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-decimal"^^xsd:anyURI ; fhir:link ] ) ] ) ; 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:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "MO.Value" ] ] ) ] [ fhir:id [ fhir:v "Money.currency" ] ; fhir:path [ fhir:v "Money.currency" ] ; fhir:short [ fhir:v "ISO 4217 Currency Code" ] ; fhir:definition [ fhir:v "ISO 4217 Currency Code." ] ; fhir:requirements [ fhir:v "A code indicating the currency, taken from ISO 4217." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Money.currency" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "code"^^xsd:anyURI ] ; fhir:profile ( [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-code"^^xsd:anyURI ; fhir:link ] ) ] ) ; fhir:pattern [ a fhir:code ; fhir:v "SAR" ] ; 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:isModifier [ fhir:v false ] ; fhir:isSummary [ fhir:v true ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CurrencyCode" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "A code indicating the currency, taken from ISO 4217." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/currencies|4.0.1"^^xsd:anyURI ; fhir:link ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "MO.Currency" ] ] ) ] ) ] ; # fhir:differential [ fhir:element ( [ fhir:id [ fhir:v "Money" ] ; fhir:path [ fhir:v "Money" ] ] [ fhir:id [ fhir:v "Money.value" ] ; fhir:path [ fhir:v "Money.value" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:type ( [ fhir:code [ fhir:v "decimal"^^xsd:anyURI ] ; fhir:profile ( [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-decimal"^^xsd:anyURI ; fhir:link ] ) ] ) ] [ fhir:id [ fhir:v "Money.currency" ] ; fhir:path [ fhir:v "Money.currency" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:type ( [ fhir:code [ fhir:v "code"^^xsd:anyURI ] ; fhir:profile ( [ fhir:v "http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-code"^^xsd:anyURI ; fhir:link ] ) ] ) ; fhir:pattern [ a fhir:code ; fhir:v "SAR" ] ] ) ] . # # -------------------------------------------------------------------------------------