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