{
"description": null,
"_filename": "StructureDefinition-power-of-attorney-poa.json",
"package_name": "se.electronichealth.fhir.ppdr.r5",
"date": null,
"derivation": "constraint",
"publisher": null,
"fhirVersion": "5.0.0",
"name": "PowerOfAttorneyPoa",
"abstract": false,
"type": "Consent",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "Power of Attorney (POA)",
"package_version": "0.1.0-alpha",
"status": "active",
"id": "cee00f2d-dc79-4c35-999b-0866292e38e3",
"kind": "resource",
"url": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"version": "0.1.0",
"differential": {
"element": [ {
"id": "Consent.text",
"path": "Consent.text",
"short": "Description of POA",
"mustSupport": true
}, {
"id": "Consent.text.status",
"path": "Consent.text.status",
"fixedCode": "generated",
"mustSupport": true
}, {
"id": "Consent.text.div",
"path": "Consent.text.div",
"mustSupport": true
}, {
"id": "Consent.identifier",
"max": "1",
"path": "Consent.identifier",
"mustSupport": true
}, {
"id": "Consent.status",
"path": "Consent.status",
"short": "draft | active | inactive",
"binding": {
"strength": "required",
"valueSet": "http://electronichealth.se/fhir/NDI/ValueSet/poa-poa-statuses"
},
"mustSupport": true
}, {
"id": "Consent.category",
"path": "Consent.category",
"mustSupport": true
}, {
"id": "Consent.category.coding",
"max": "1",
"min": 1,
"path": "Consent.category.coding",
"mustSupport": true
}, {
"id": "Consent.category.coding.system",
"min": 1,
"path": "Consent.category.coding.system",
"mustSupport": true
}, {
"id": "Consent.category.coding.code",
"min": 1,
"path": "Consent.category.coding.code",
"mustSupport": true
}, {
"id": "Consent.subject",
"min": 1,
"path": "Consent.subject",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://electronichealth.se/fhir/NDI/StructureDefinition/patient-data-access" ]
} ],
"mustSupport": true
}, {
"id": "Consent.subject.reference",
"path": "Consent.subject.reference",
"mustSupport": true
}, {
"id": "Consent.subject.identifier",
"path": "Consent.subject.identifier",
"constraint": [ {
"key": "ndi-personal-identity-number-value-1",
"human": "A Swedish personal identity number (sv: personnummer) should follow format 198001032385",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([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])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/personnummer'"
}, {
"key": "ndi-coordination-number-value-1",
"human": "A Swedish coordination number (sv: samordningsnummer) should follow format 201903682399",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])([6-9][1-9])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/samordningsnummer'"
} ],
"mustSupport": true
}, {
"id": "Consent.subject.identifier.system",
"min": 1,
"path": "Consent.subject.identifier.system",
"mustSupport": true
}, {
"id": "Consent.subject.identifier.value",
"min": 1,
"path": "Consent.subject.identifier.value",
"mustSupport": true
}, {
"id": "Consent.date",
"path": "Consent.date",
"mustSupport": true
}, {
"id": "Consent.period",
"min": 1,
"path": "Consent.period",
"mustSupport": true
}, {
"id": "Consent.period.start",
"min": 1,
"path": "Consent.period.start",
"constraint": [ {
"key": "ndi-dateTime-1",
"human": "DateTime must be without timestamp",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "$this.toString().contains('T') = false"
} ],
"mustSupport": true
}, {
"id": "Consent.period.end",
"path": "Consent.period.end",
"constraint": [ {
"key": "ndi-dateTime-1",
"human": "DateTime must be without timestamp",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "$this.toString().contains('T') = false"
} ],
"mustSupport": true
}, {
"id": "Consent.grantor",
"max": "1",
"min": 1,
"path": "Consent.grantor",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
} ],
"mustSupport": true
}, {
"id": "Consent.grantor.reference",
"path": "Consent.grantor.reference",
"mustSupport": true
}, {
"id": "Consent.grantor.identifier",
"path": "Consent.grantor.identifier",
"constraint": [ {
"key": "ndi-personal-identity-number-value-1",
"human": "A Swedish personal identity number (sv: personnummer) should follow format 198001032385",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([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])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/personnummer'"
}, {
"key": "ndi-coordination-number-value-1",
"human": "A Swedish coordination number (sv: samordningsnummer) should follow format 201903682399",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])([6-9][1-9])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/samordningsnummer'"
} ],
"mustSupport": true
}, {
"id": "Consent.grantor.identifier.system",
"min": 1,
"path": "Consent.grantor.identifier.system",
"mustSupport": true
}, {
"id": "Consent.grantor.identifier.value",
"min": 1,
"path": "Consent.grantor.identifier.value",
"mustSupport": true
}, {
"id": "Consent.grantee",
"max": "1",
"min": 1,
"path": "Consent.grantee",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
} ],
"mustSupport": true
}, {
"id": "Consent.grantee.reference",
"path": "Consent.grantee.reference",
"mustSupport": true
}, {
"id": "Consent.grantee.identifier",
"path": "Consent.grantee.identifier",
"constraint": [ {
"key": "ndi-personal-identity-number-value-1",
"human": "A Swedish personal identity number (sv: personnummer) should follow format 198001032385",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([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])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/personnummer'"
}, {
"key": "ndi-coordination-number-value-1",
"human": "A Swedish coordination number (sv: samordningsnummer) should follow format 201903682399",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])([6-9][1-9])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/samordningsnummer'"
} ],
"mustSupport": true
}, {
"id": "Consent.grantee.identifier.system",
"min": 1,
"path": "Consent.grantee.identifier.system",
"mustSupport": true
}, {
"id": "Consent.grantee.identifier.value",
"min": 1,
"path": "Consent.grantee.identifier.value",
"mustSupport": true
}, {
"id": "Consent.sourceReference",
"max": "1",
"min": 1,
"path": "Consent.sourceReference",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/DocumentReference" ]
} ],
"mustSupport": true
}, {
"id": "Consent.sourceReference.reference",
"min": 1,
"path": "Consent.sourceReference.reference",
"mustSupport": true
}, {
"id": "Consent.verification",
"path": "Consent.verification",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "normative"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
"valueCode": "4.0.0"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/obligation",
"extension": [ {
"url": "code",
"valueCode": "SHALL:populate"
}, {
"url": "actor",
"valueCanonical": "http://electronichealth.se/fhir/NDI/ActorDefinition/power-of-attorney-source-actor-poa"
} ]
} ],
"mustSupport": true
}, {
"id": "Consent.verification.verified",
"path": "Consent.verification.verified",
"mustSupport": true
}, {
"id": "Consent.verification.verificationType",
"path": "Consent.verification.verificationType",
"mustSupport": true
}, {
"id": "Consent.verification.verificationType.coding",
"max": "1",
"min": 1,
"path": "Consent.verification.verificationType.coding",
"mustSupport": true
}, {
"id": "Consent.verification.verificationType.coding.system",
"min": 1,
"path": "Consent.verification.verificationType.coding.system",
"mustSupport": true
}, {
"id": "Consent.verification.verificationType.coding.code",
"min": 1,
"path": "Consent.verification.verificationType.coding.code",
"mustSupport": true
}, {
"id": "Consent.verification.verifiedWith",
"min": 1,
"path": "Consent.verification.verifiedWith",
"mustSupport": true
}, {
"id": "Consent.verification.verifiedWith.identifier",
"min": 1,
"path": "Consent.verification.verifiedWith.identifier",
"mustSupport": true
}, {
"id": "Consent.verification.verifiedWith.identifier.system",
"min": 1,
"path": "Consent.verification.verifiedWith.identifier.system",
"mustSupport": true
}, {
"id": "Consent.verification.verifiedWith.identifier.value",
"min": 1,
"path": "Consent.verification.verifiedWith.identifier.value",
"mustSupport": true
}, {
"id": "Consent.decision",
"min": 1,
"path": "Consent.decision",
"fixedCode": "permit",
"mustSupport": true
}, {
"id": "Consent.provision",
"min": 1,
"path": "Consent.provision",
"mustSupport": true
}, {
"id": "Consent.provision.action",
"min": 1,
"path": "Consent.provision.action",
"binding": {
"strength": "required",
"valueSet": "http://electronichealth.se/fhir/NDI/ValueSet/ps-permission-actions"
},
"mustSupport": true
}, {
"id": "Consent.provision.action.coding",
"max": "1",
"min": 1,
"path": "Consent.provision.action.coding",
"mustSupport": true
}, {
"id": "Consent.provision.action.coding.system",
"min": 1,
"path": "Consent.provision.action.coding.system",
"mustSupport": true
}, {
"id": "Consent.provision.action.coding.code",
"min": 1,
"path": "Consent.provision.action.coding.code",
"mustSupport": true
}, {
"id": "Consent.provision.documentType",
"path": "Consent.provision.documentType",
"short": "EHDS data category",
"binding": {
"strength": "required",
"valueSet": "http://electronichealth.se/fhir/NDI/ValueSet/ndi-ehds-categories"
},
"mustSupport": true
}, {
"id": "Consent.provision.documentType.system",
"min": 1,
"path": "Consent.provision.documentType.system",
"mustSupport": true
}, {
"id": "Consent.provision.documentType.code",
"min": 1,
"path": "Consent.provision.documentType.code",
"mustSupport": true
}, {
"id": "Consent.provision.dataPeriod",
"path": "Consent.provision.dataPeriod",
"mustSupport": true
}, {
"id": "Consent.provision.dataPeriod.start",
"path": "Consent.provision.dataPeriod.start",
"constraint": [ {
"key": "ndi-dateTime-1",
"human": "DateTime must be without timestamp",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "$this.toString().contains('T') = false"
} ],
"mustSupport": true
}, {
"id": "Consent.provision.dataPeriod.end",
"path": "Consent.provision.dataPeriod.end",
"constraint": [ {
"key": "ndi-dateTime-1",
"human": "DateTime must be without timestamp",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "$this.toString().contains('T') = false"
} ],
"mustSupport": true
}, {
"id": "Consent.provision.data",
"path": "Consent.provision.data",
"slicing": {
"rules": "open",
"ordered": false,
"description": "Slice data based on meaning",
"discriminator": [ {
"path": "meaning",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "Consent.provision.data.meaning",
"path": "Consent.provision.data.meaning",
"mustSupport": true
}, {
"id": "Consent.provision.data.reference",
"path": "Consent.provision.data.reference",
"mustSupport": true
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit",
"max": "*",
"min": 0,
"path": "Consent.provision.data",
"sliceName": "fromCaregiverOrUnit",
"mustSupport": true
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit.meaning",
"path": "Consent.provision.data.meaning",
"fixedCode": "authoredby"
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit.reference",
"path": "Consent.provision.data.reference",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://electronichealth.se/fhir/NDI/StructureDefinition/organization-data-access" ]
} ]
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit.reference.reference",
"path": "Consent.provision.data.reference.reference",
"mustSupport": true
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit.reference.identifier",
"path": "Consent.provision.data.reference.identifier",
"constraint": [ {
"key": "ndi-organization-identifier-value-1",
"human": "A Swedish organization identifier (sv: organisationsnummer) should follow format 7999000057",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^\\\\d{6}\\\\d{4}$') or system != 'urn:oid:2.5.4.97'"
}, {
"key": "ndi-personal-identity-number-value-1",
"human": "A Swedish personal identity number (sv: personnummer) should follow format 198001032385",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([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])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/personnummer'"
}, {
"key": "ndi-coordination-number-value-1",
"human": "A Swedish coordination number (sv: samordningsnummer) should follow format 201903682399",
"source": "http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa",
"severity": "error",
"expression": "value.matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(0[1-9]|1[0-2])([6-9][1-9])\\\\d{4}$') or system != 'http://electronichealth.se/identifier/samordningsnummer'"
} ],
"mustSupport": true
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit.reference.identifier.system",
"min": 1,
"path": "Consent.provision.data.reference.identifier.system",
"mustSupport": true
}, {
"id": "Consent.provision.data:fromCaregiverOrUnit.reference.identifier.value",
"min": 1,
"path": "Consent.provision.data.reference.identifier.value",
"mustSupport": true
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent"
}