description: null package_name: se.electronichealth.fhir.ppdr.r5 derivation: constraint name: PowerOfAttorneyPoa type: Consent elements: category: mustSupport: true index: 6 elements: coding: mustSupport: true index: 7 elements: system: {mustSupport: true, index: 8} code: {mustSupport: true, index: 9} required: [system, code] required: [coding] provision: mustSupport: true index: 42 elements: action: binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/ps-permission-actions'} mustSupport: true index: 43 elements: coding: mustSupport: true index: 44 elements: system: {mustSupport: true, index: 45} code: {mustSupport: true, index: 46} required: [system, code] required: [coding] documentType: short: EHDS data category binding: {strength: required, valueSet: 'http://hl7.eu/fhir/base-r5/ValueSet/ehdsCategories-eu'} mustSupport: true index: 47 elements: system: {mustSupport: true, index: 48} code: {mustSupport: true, index: 49} required: [system, code] dataPeriod: mustSupport: true index: 50 elements: start: constraint: 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 index: 51 end: constraint: 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 index: 52 data: mustSupport: true index: 53 elements: meaning: {mustSupport: true, index: 54} reference: {mustSupport: true, index: 55} slicing: rules: open ordered: false description: Slice data based on meaning discriminator: - {path: meaning, type: value} min: null slices: fromCaregiverOrUnit: match: {meaning: authoredby} schema: mustSupport: true array: true index: 56 elements: meaning: pattern: {type: Code, value: authoredby} index: 57 reference: type: Reference refers: ['http://electronichealth.se/fhir/NDI/StructureDefinition/organization-data-access'] index: 58 elements: reference: {mustSupport: true, index: 59} identifier: constraint: 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'''} 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'''} 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 index: 60 elements: system: {mustSupport: true, index: 61} value: {mustSupport: true, index: 62} required: [value, system] required: [action] date: {mustSupport: true, index: 15} verification: mustSupport: true index: 31 elements: verified: {mustSupport: true, index: 32} verificationType: binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/poa-verification-roles'} mustSupport: true index: 33 elements: coding: mustSupport: true index: 34 elements: system: {mustSupport: true, index: 35} code: {mustSupport: true, index: 36} required: [system, code] required: [coding] verifiedWith: mustSupport: true index: 37 elements: identifier: mustSupport: true index: 38 elements: system: {mustSupport: true, index: 39} value: {mustSupport: true, index: 40} required: [value, system] required: [identifier] required: [verificationType, verifiedWith] grantor: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 19 elements: reference: {mustSupport: true, index: 20} identifier: constraint: 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'''} 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 index: 21 elements: system: {mustSupport: true, index: 22} value: {mustSupport: true, index: 23} required: [value, system] sourceReference: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference'] index: 29 elements: reference: {mustSupport: true, index: 30} required: [reference] status: short: draft | active | inactive binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/poa-poa-statuses'} mustSupport: true index: 5 id: {index: 0} identifier: {mustSupport: true, index: 4} period: mustSupport: true index: 16 elements: start: constraint: 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 index: 17 end: constraint: 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 index: 18 required: [start] grantee: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 24 elements: reference: {mustSupport: true, index: 25} identifier: constraint: 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'''} 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 index: 26 elements: system: {mustSupport: true, index: 27} value: {mustSupport: true, index: 28} required: [value, system] subject: type: Reference mustSupport: true refers: ['http://electronichealth.se/fhir/NDI/StructureDefinition/patient-data-access'] index: 10 elements: reference: {mustSupport: true, index: 11} identifier: constraint: 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'''} 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 index: 12 elements: system: {mustSupport: true, index: 13} value: {mustSupport: true, index: 14} required: [value, system] decision: pattern: {type: Code, value: permit} mustSupport: true index: 41 text: short: Description of POA mustSupport: true index: 1 elements: status: pattern: {type: Code, value: generated} mustSupport: true index: 2 div: {mustSupport: true, index: 3} package_version: 1.0.0-beta.1 class: profile kind: resource url: http://electronichealth.se/fhir/NDI/StructureDefinition/power-of-attorney-poa base: http://hl7.org/fhir/StructureDefinition/Consent version: 0.1.0 required: [grantor, grantee, sourceReference, decision, subject, period, provision]