@prefix fhir: . @prefix owl: . @prefix rdfs: . @prefix xsd: . # - resource ------------------------------------------------------------------- a fhir:StructureDefinition ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "pca-active-period"] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "
\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionPeriod when the healthcare service is active
\".\"\".\"\".\" extension 0..0
\".\"\".\"\".\" url 1..1uri"http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"
\".\"\".\"\".\" value[x] C1..1PeriodPeriod when the healthcare service is active
inv-pca-1: At least value[x].start or value[x].end shall be present
inv-pca-2: If present, value[x].start shall be later than '1900-01-01'
inv-pca-3: If present, value[x].end shall be no more than 5 years from the current date

\"doco\" Documentation for this format
" ] ; # fhir:url [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI] ; # fhir:version [ fhir:v "24.1.0.0"] ; # fhir:name [ fhir:v "PCAActivePeriod"] ; # fhir:title [ fhir:v "PCAActivePeriod"] ; # fhir:status [ fhir:v "active"] ; # fhir:date [ fhir:v "2024-05-28T09:09:45+10:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "Australian Digital Health Agency"] ; # fhir:contact ( [ fhir:telecom ( [ fhir:system [ fhir:v "email" ] ; fhir:value [ fhir:v "mailto:help@digitalhealth.gov.au" ] ] ) ] ) ; # fhir:description [ fhir:v "This extension applies to PCA Healthcare Service, and represents the period when the healthcare service is active."] ; # fhir:jurisdiction ( [ fhir:coding ( [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ; fhir:code [ fhir:v "AU" ] ] ) ] ) ; # fhir:copyright [ fhir:v "Copyright © 2024 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/."] ; # 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:kind [ fhir:v "complex-type"] ; # fhir:abstract [ fhir:v "false"^^xsd:boolean] ; # fhir:context ( [ fhir:type [ fhir:v "element" ] ; fhir:expression [ fhir:v "HealthcareService" ] ] ) ; # fhir:type [ fhir:v "Extension"^^xsd:anyURI] ; # fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ; fhir:link ] ; # fhir:derivation [ fhir:v "constraint"] ; # fhir:snapshot [ fhir:element ( [ fhir:id [ fhir:v "Extension" ] ; fhir:path [ fhir:v "Extension" ] ; fhir:short [ fhir:v "Period when the healthcare service is active" ] ; fhir:definition [ fhir:v "Period when the healthcare service is active." ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Extension" ] ; 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: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"^^xsd:boolean ] ] [ fhir:id [ fhir:v "Extension.id" ] ; fhir:path [ fhir:v "Extension.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 [ fhir:v "string"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ; fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Extension.extension" ] ; fhir:path [ fhir:v "Extension.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 "Extension" ] ; fhir:definition [ fhir:v "An Extension" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "0" ] ; 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"^^xsd:boolean ] ; fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ] [ fhir:id [ fhir:v "Extension.url" ] ; fhir:path [ fhir:v "Extension.url" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "identifies the meaning of the extension" ] ; fhir:definition [ fhir:v "Source of the definition for the extension code - a logical name or a URL." ] ; fhir:comment [ fhir:v "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Extension.url" ] ; fhir:min [ fhir:v "1"^^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 [ fhir:v "uri"^^xsd:anyURI ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ] ] ) ; fhir:fixed [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ] ; fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ; fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Extension.value[x]" ] ; fhir:path [ fhir:v "Extension.value[x]" ] ; fhir:short [ fhir:v "Period when the healthcare service is active" ] ; fhir:definition [ fhir:v "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Extension.value[x]" ] ; fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Period"^^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 "inv-pca-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "At least value[x].start or value[x].end shall be present" ] ; fhir:expression [ fhir:v "start.exists() or end.exists()" ] ; fhir:source [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ; fhir:link ] ] [ fhir:key [ fhir:v "inv-pca-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If present, value[x].start shall be later than '1900-01-01'" ] ; fhir:expression [ fhir:v "(start.exists()) implies (start > @1900-01-01)" ] ; fhir:source [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ; fhir:link ] ] [ fhir:key [ fhir:v "inv-pca-3" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If present, value[x].end shall be no more than 5 years from the current date" ] ; fhir:expression [ fhir:v "(end.exists()) implies (end < (now() + 5 years))" ] ; fhir:source [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ; fhir:link ] ] ) ; fhir:isModifier [ fhir:v "false"^^xsd:boolean ] ; fhir:isSummary [ fhir:v "false"^^xsd:boolean ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] ) ] ; # fhir:differential [ fhir:element ( [ fhir:id [ fhir:v "Extension" ] ; fhir:path [ fhir:v "Extension" ] ; fhir:short [ fhir:v "Period when the healthcare service is active" ] ; fhir:definition [ fhir:v "Period when the healthcare service is active." ] ] [ fhir:id [ fhir:v "Extension.extension" ] ; fhir:path [ fhir:v "Extension.extension" ] ; fhir:max [ fhir:v "0" ] ] [ fhir:id [ fhir:v "Extension.url" ] ; fhir:path [ fhir:v "Extension.url" ] ; fhir:fixed [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ] ] [ fhir:id [ fhir:v "Extension.value[x]" ] ; fhir:path [ fhir:v "Extension.value[x]" ] ; fhir:short [ fhir:v "Period when the healthcare service is active" ] ; fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ; fhir:type ( [ fhir:code [ fhir:v "Period"^^xsd:anyURI ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "inv-pca-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "At least value[x].start or value[x].end shall be present" ] ; fhir:expression [ fhir:v "start.exists() or end.exists()" ] ; fhir:source [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ; fhir:link ] ] [ fhir:key [ fhir:v "inv-pca-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If present, value[x].start shall be later than '1900-01-01'" ] ; fhir:expression [ fhir:v "(start.exists()) implies (start > @1900-01-01)" ] ; fhir:source [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ; fhir:link ] ] [ fhir:key [ fhir:v "inv-pca-3" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If present, value[x].end shall be no more than 5 years from the current date" ] ; fhir:expression [ fhir:v "(end.exists()) implies (end < (now() + 5 years))" ] ; fhir:source [ fhir:v "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-active-period"^^xsd:anyURI ; fhir:link ] ] ) ] ) ] . # # -------------------------------------------------------------------------------------