CH EPR FHIR (R4)
4.0.0-ci-build - DSTU3 Switzerland flag

CH EPR FHIR (R4), published by eHealth Suisse. This guide is not an authorized publication; it is the continuous build for version 4.0.0-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/ehealthsuisse/ch-epr-mhealth/ and changes regularly. See the Directory of published versions

Resource Profile: CH PPQm Consent Template 301

Official URL: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate301 Version: 4.0.0-ci-build
Active as of 2024-04-02 Computable Name: PpqmConsentTemplate301

Copyright/Legal: CC0-1.0

Swiss EPR Policy Set Template 301 as a Consent – Access level for a healthcare professional

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from PpqmConsent

NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C0..*PpqmConsentA healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
ch-epr-ppqm-delegation-policy-or-end-date: A delegation policy OR the end date SHALL be set
... identifier:templateId 1..1IdentifierTemplate ID of the policy set
.... value 1..1stringTemplate ID of the policy set
Required Pattern: 301
... policyRule
.... coding 1..1CodingCode defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Healthcare professionals (301) template (required)
... provision
.... actor
..... role
...... coding 0..*CodingCode defined by a terminology system
Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: HCP
..... reference
...... identifier 1..1GLNIdentifierAn identifier intended for computation
....... system 0..1uriThe namespace for the identifier value
Required Pattern: urn:oid:2.51.1.3
...... display 0..0
.... purpose 1..1CodingContext of activities covered by this rule
Required Pattern: At least the following
..... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: NORM

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Consent.policyRule.codingrequiredPpqmReferencedPolicySetHcp
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetHcp
from this IG

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-delegation-policy-or-end-dateerrorConsentA delegation policy OR the end date SHALL be set
: policyRule.coding.code.contains('delegation').empty() or provision.period.end.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C0..*PpqmConsentA healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
ppc-1: Either a Policy or PolicyRule
ppc-2: IF Scope=privacy, there must be a patient
ppc-3: IF Scope=research, there must be a patient
ppc-4: IF Scope=adr, there must be a patient
ppc-5: IF Scope=treatment, there must be a patient
ch-epr-ppqm-template-structure: The resource shall correspond to one of official policy set templates
ch-epr-ppqm-delegation-policy-or-end-date: A delegation policy OR the end date SHALL be set
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... Slices for identifier Σ2..*IdentifierIdentifier for this record (external references)
Slice: Unordered, Open by pattern:type.coding

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
.... identifier:policySetId Σ1..1IdentifierUUID of the Policy Set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: policySetId
..... value ΣC1..1stringUUID of the policy set in URN format
ch-epr-ppqm-uuid-format: The policy set ID must be a UUID in URN format
Example General: 123456
.... identifier:templateId Σ1..1IdentifierTemplate ID of the policy set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: templateId
..... value Σ1..1stringTemplate ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
Required Pattern: 301
... scope ?!Σ1..1CodeableConceptFixed scope value
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.


Required Pattern: At least the following
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: patient-privacy
.... coding Σ1..1CodingCode defined by a terminology system
... category Σ1..1CodeableConceptFixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.



Required Pattern: At least the following
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: INFA
.... coding Σ1..1CodingCode defined by a terminology system
... patient Σ1..1Reference(Patient)Who the consent applies to
.... identifier 1..1EPRSPIDIdentifierAn identifier intended for computation
..... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC1..1stringThe value that is unique
epr-spid-length: EPR-SPID must be exactly 18 characters long
epr-spid-startswith76133761: EPR-SPID must start with 76133761
epr-spid-modulus-10: EPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
Example General: 123456
... policyRule ΣC1..1CodeableConceptID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.

.... coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Healthcare professionals (301) template (required)
..... system Σ1..1uriIdentity of the terminology system
..... code Σ1..1codeSymbol in syntax defined by the system
... provision Σ1..1BackboneElementConstraints to the base Consent.policyRule
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... actor 1..1BackboneElementWho|what controlled by this rule (or group, by role)
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... role 1..1CodeableConceptHow the actor is involved
Binding: EprRole (required)
...... coding Σ0..*CodingCode defined by a terminology system

Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: HCP
....... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code Σ1..1codeEPR actor role code
..... reference 1..1Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole)Resource for the actor (or group, by role)
...... identifier 1..1GLNIdentifierAn identifier intended for computation
....... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

........ coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)
......... system Σ1..1uriIdentity of the terminology system
......... code Σ1..1codeActor identifier type code (name qualifier)
....... system Σ0..1uriThe namespace for the identifier value
Required Pattern: urn:oid:2.51.1.3
....... value Σ1..1stringID of an healthcare professional, group of healthcare professionals, patient, or representative
Example General: 123456
.... purpose Σ1..1CodingContext of activities covered by this rule
Binding: EprPurposeOfUse (required)

Required Pattern: At least the following
..... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: NORM
..... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code Σ1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Consent.identifier:policySetId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.valuerequiredPattern: 301
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmPolicySetTemplateId
from this IG
Consent.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1
from the FHIR Standard
Consent.scopeextensiblePattern: patient-privacy
http://hl7.org/fhir/ValueSet/consent-scope
from the FHIR Standard
Consent.categoryextensiblePattern: INFA
http://hl7.org/fhir/ValueSet/consent-category
from the FHIR Standard
Consent.policyRuleextensibleConsentPolicyRuleCodes
http://hl7.org/fhir/ValueSet/consent-policy
from the FHIR Standard
Consent.policyRule.codingrequiredPpqmReferencedPolicySetHcp
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetHcp
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-epr-term/ValueSet/EprRole
Consent.provision.actor.reference.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.provision.actor.reference.identifier.type.codingrequiredPpqmActorIdentifierType
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-epr-term/ValueSet/EprPurposeOfUse
Consent.provision.data.meaningrequiredConsentDataMeaning
http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-delegation-policy-or-end-dateerrorConsentA delegation policy OR the end date SHALL be set
: policyRule.coding.code.contains('delegation').empty() or provision.period.end.exists()
ch-epr-ppqm-template-structureerrorConsentThe resource shall correspond to one of official policy set templates
: conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate201') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate202') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate203') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate301') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate302') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate303')
ch-epr-ppqm-uuid-formaterrorConsent.identifier:policySetId.valueThe policy set ID must be a UUID in URN format
: lower().matches('^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$')
dom-2errorConsentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorConsentIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorConsentIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorConsentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceConsentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
epr-spid-lengthwarningConsent.patient.identifier.valueEPR-SPID must be exactly 18 characters long
: matches('^[0-9]{18}$')
epr-spid-modulus-10warningConsent.patient.identifier.valueEPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
: (((10-((68+(substring(8,1).toInteger()*3)+(substring(9,1).toInteger()*1)+(substring(10,1).toInteger()*3)+(substring(11,1).toInteger()*1)+(substring(12,1).toInteger()*3)+(substring(13,1).toInteger()*1)+(substring(14,1).toInteger()*3)+(substring(15,1).toInteger()*1)+(substring(16,1).toInteger()*3))mod(10)))mod(10))=substring(17,1).toInteger())
epr-spid-startswith76133761warningConsent.patient.identifier.valueEPR-SPID must start with 76133761
: startsWith('76133761')
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ppc-1errorConsentEither a Policy or PolicyRule
: policy.exists() or policyRule.exists()
ppc-2errorConsentIF Scope=privacy, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3errorConsentIF Scope=research, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4errorConsentIF Scope=adr, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5errorConsentIF Scope=treatment, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C0..*PpqmConsentA healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
ppc-1: Either a Policy or PolicyRule
ppc-2: IF Scope=privacy, there must be a patient
ppc-3: IF Scope=research, there must be a patient
ppc-4: IF Scope=adr, there must be a patient
ppc-5: IF Scope=treatment, there must be a patient
ch-epr-ppqm-template-structure: The resource shall correspond to one of official policy set templates
ch-epr-ppqm-delegation-policy-or-end-date: A delegation policy OR the end date SHALL be set
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... Slices for identifier Σ2..*IdentifierIdentifier for this record (external references)
Slice: Unordered, Open by pattern:type.coding

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
.... identifier:policySetId Σ1..1IdentifierUUID of the Policy Set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: policySetId
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... value ΣC1..1stringUUID of the policy set in URN format
ch-epr-ppqm-uuid-format: The policy set ID must be a UUID in URN format
Example General: 123456
.... identifier:templateId Σ1..1IdentifierTemplate ID of the policy set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: templateId
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... value Σ1..1stringTemplate ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
Required Pattern: 301
... status ?!Σ1..1codeFixed status value
Binding: ConsentState (required): Indicates the state of the consent.


Required Pattern: active
... scope ?!Σ1..1CodeableConceptFixed scope value
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.


Required Pattern: At least the following
.... id0..1stringUnique id for inter-element referencing
.... extension0..*ExtensionAdditional content defined by implementations
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: patient-privacy
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
.... text0..1stringPlain text representation of the concept
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ1..1CodingCode defined by a terminology system
.... text Σ0..1stringPlain text representation of the concept
... category Σ1..1CodeableConceptFixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.



Required Pattern: At least the following
.... id0..1stringUnique id for inter-element referencing
.... extension0..*ExtensionAdditional content defined by implementations
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: INFA
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
.... text0..1stringPlain text representation of the concept
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ1..1CodingCode defined by a terminology system
.... text Σ0..1stringPlain text representation of the concept
... patient Σ1..1Reference(Patient)Who the consent applies to
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... identifier 1..1EPRSPIDIdentifierAn identifier intended for computation
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC1..1stringThe value that is unique
epr-spid-length: EPR-SPID must be exactly 18 characters long
epr-spid-startswith76133761: EPR-SPID must start with 76133761
epr-spid-modulus-10: EPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
Example General: 123456
... policyRule ΣC1..1CodeableConceptID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.

.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Healthcare professionals (301) template (required)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ1..1uriIdentity of the terminology system
..... code Σ1..1codeSymbol in syntax defined by the system
..... display Σ0..1stringRepresentation defined by the system
.... text Σ0..1stringPlain text representation of the concept
... provision Σ1..1BackboneElementConstraints to the base Consent.policyRule
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... period Σ0..1PeriodTimeframe for this rule
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... start ΣC0..1dateTimeStart date of the policy set validity, yyyy-mm-dd
ch-epr-ppqm-date-format: Timestamp must have precision of days, i.e. not contain the time part
..... end ΣC1..1dateTimeEnd date of the policy set validity, yyyy-mm-dd
ch-epr-ppqm-date-format: Timestamp must have precision of days, i.e. not contain the time part
.... actor 1..1BackboneElementWho|what controlled by this rule (or group, by role)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... role 1..1CodeableConceptHow the actor is involved
Binding: EprRole (required)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ0..*CodingCode defined by a terminology system

Required Pattern: At least the following
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: HCP
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version Σ0..1stringVersion of the system - if relevant
....... code Σ1..1codeEPR actor role code
....... display Σ0..1stringRepresentation defined by the system
....... userSelected Σ0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... reference 1..1Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole)Resource for the actor (or group, by role)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... identifier 1..1GLNIdentifierAn identifier intended for computation
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

........ id 0..1stringUnique id for inter-element referencing
........ extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
........ coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)
......... id 0..1stringUnique id for inter-element referencing
......... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
......... system Σ1..1uriIdentity of the terminology system
......... code Σ1..1codeActor identifier type code (name qualifier)
......... display Σ0..1stringRepresentation defined by the system
....... system Σ0..1uriThe namespace for the identifier value
Required Pattern: urn:oid:2.51.1.3
....... value Σ1..1stringID of an healthcare professional, group of healthcare professionals, patient, or representative
Example General: 123456
.... purpose Σ1..1CodingContext of activities covered by this rule
Binding: EprPurposeOfUse (required)

Required Pattern: At least the following
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: NORM
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version Σ0..1stringVersion of the system - if relevant
..... code Σ1..1codeSymbol in syntax defined by the system
..... display Σ0..1stringRepresentation defined by the system
..... userSelected Σ0..1booleanIf this coding was chosen directly by the user

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Consent.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Consent.identifier:policySetId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.valuerequiredPattern: 301
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmPolicySetTemplateId
from this IG
Consent.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1
from the FHIR Standard
Consent.scopeextensiblePattern: patient-privacy
http://hl7.org/fhir/ValueSet/consent-scope
from the FHIR Standard
Consent.categoryextensiblePattern: INFA
http://hl7.org/fhir/ValueSet/consent-category
from the FHIR Standard
Consent.policyRuleextensibleConsentPolicyRuleCodes
http://hl7.org/fhir/ValueSet/consent-policy
from the FHIR Standard
Consent.policyRule.codingrequiredPpqmReferencedPolicySetHcp
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetHcp
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-epr-term/ValueSet/EprRole
Consent.provision.actor.reference.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.provision.actor.reference.identifier.type.codingrequiredPpqmActorIdentifierType
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-epr-term/ValueSet/EprPurposeOfUse
Consent.provision.data.meaningrequiredConsentDataMeaning
http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-date-formaterrorConsent.provision.period.start, Consent.provision.period.endTimestamp must have precision of days, i.e. not contain the time part
: toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
ch-epr-ppqm-delegation-policy-or-end-dateerrorConsentA delegation policy OR the end date SHALL be set
: policyRule.coding.code.contains('delegation').empty() or provision.period.end.exists()
ch-epr-ppqm-template-structureerrorConsentThe resource shall correspond to one of official policy set templates
: conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate201') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate202') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate203') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate301') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate302') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate303')
ch-epr-ppqm-uuid-formaterrorConsent.identifier:policySetId.valueThe policy set ID must be a UUID in URN format
: lower().matches('^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$')
dom-2errorConsentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorConsentIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorConsentIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorConsentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceConsentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
epr-spid-lengthwarningConsent.patient.identifier.valueEPR-SPID must be exactly 18 characters long
: matches('^[0-9]{18}$')
epr-spid-modulus-10warningConsent.patient.identifier.valueEPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
: (((10-((68+(substring(8,1).toInteger()*3)+(substring(9,1).toInteger()*1)+(substring(10,1).toInteger()*3)+(substring(11,1).toInteger()*1)+(substring(12,1).toInteger()*3)+(substring(13,1).toInteger()*1)+(substring(14,1).toInteger()*3)+(substring(15,1).toInteger()*1)+(substring(16,1).toInteger()*3))mod(10)))mod(10))=substring(17,1).toInteger())
epr-spid-startswith76133761warningConsent.patient.identifier.valueEPR-SPID must start with 76133761
: startsWith('76133761')
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ppc-1errorConsentEither a Policy or PolicyRule
: policy.exists() or policyRule.exists()
ppc-2errorConsentIF Scope=privacy, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3errorConsentIF Scope=research, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4errorConsentIF Scope=adr, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5errorConsentIF Scope=treatment, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()

This structure is derived from PpqmConsent

Summary

Mandatory: 2 elements
Prohibited: 1 element

Structures

This structure refers to these other structures:

Differential View

This structure is derived from PpqmConsent

NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C0..*PpqmConsentA healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
ch-epr-ppqm-delegation-policy-or-end-date: A delegation policy OR the end date SHALL be set
... identifier:templateId 1..1IdentifierTemplate ID of the policy set
.... value 1..1stringTemplate ID of the policy set
Required Pattern: 301
... policyRule
.... coding 1..1CodingCode defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Healthcare professionals (301) template (required)
... provision
.... actor
..... role
...... coding 0..*CodingCode defined by a terminology system
Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: HCP
..... reference
...... identifier 1..1GLNIdentifierAn identifier intended for computation
....... system 0..1uriThe namespace for the identifier value
Required Pattern: urn:oid:2.51.1.3
...... display 0..0
.... purpose 1..1CodingContext of activities covered by this rule
Required Pattern: At least the following
..... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: NORM

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Consent.policyRule.codingrequiredPpqmReferencedPolicySetHcp
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetHcp
from this IG

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-delegation-policy-or-end-dateerrorConsentA delegation policy OR the end date SHALL be set
: policyRule.coding.code.contains('delegation').empty() or provision.period.end.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C0..*PpqmConsentA healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
ppc-1: Either a Policy or PolicyRule
ppc-2: IF Scope=privacy, there must be a patient
ppc-3: IF Scope=research, there must be a patient
ppc-4: IF Scope=adr, there must be a patient
ppc-5: IF Scope=treatment, there must be a patient
ch-epr-ppqm-template-structure: The resource shall correspond to one of official policy set templates
ch-epr-ppqm-delegation-policy-or-end-date: A delegation policy OR the end date SHALL be set
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... Slices for identifier Σ2..*IdentifierIdentifier for this record (external references)
Slice: Unordered, Open by pattern:type.coding

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
.... identifier:policySetId Σ1..1IdentifierUUID of the Policy Set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: policySetId
..... value ΣC1..1stringUUID of the policy set in URN format
ch-epr-ppqm-uuid-format: The policy set ID must be a UUID in URN format
Example General: 123456
.... identifier:templateId Σ1..1IdentifierTemplate ID of the policy set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: templateId
..... value Σ1..1stringTemplate ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
Required Pattern: 301
... scope ?!Σ1..1CodeableConceptFixed scope value
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.


Required Pattern: At least the following
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: patient-privacy
.... coding Σ1..1CodingCode defined by a terminology system
... category Σ1..1CodeableConceptFixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.



Required Pattern: At least the following
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: INFA
.... coding Σ1..1CodingCode defined by a terminology system
... patient Σ1..1Reference(Patient)Who the consent applies to
.... identifier 1..1EPRSPIDIdentifierAn identifier intended for computation
..... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC1..1stringThe value that is unique
epr-spid-length: EPR-SPID must be exactly 18 characters long
epr-spid-startswith76133761: EPR-SPID must start with 76133761
epr-spid-modulus-10: EPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
Example General: 123456
... policyRule ΣC1..1CodeableConceptID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.

.... coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Healthcare professionals (301) template (required)
..... system Σ1..1uriIdentity of the terminology system
..... code Σ1..1codeSymbol in syntax defined by the system
... provision Σ1..1BackboneElementConstraints to the base Consent.policyRule
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... actor 1..1BackboneElementWho|what controlled by this rule (or group, by role)
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... role 1..1CodeableConceptHow the actor is involved
Binding: EprRole (required)
...... coding Σ0..*CodingCode defined by a terminology system

Required Pattern: At least the following
....... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: HCP
....... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code Σ1..1codeEPR actor role code
..... reference 1..1Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole)Resource for the actor (or group, by role)
...... identifier 1..1GLNIdentifierAn identifier intended for computation
....... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

........ coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)
......... system Σ1..1uriIdentity of the terminology system
......... code Σ1..1codeActor identifier type code (name qualifier)
....... system Σ0..1uriThe namespace for the identifier value
Required Pattern: urn:oid:2.51.1.3
....... value Σ1..1stringID of an healthcare professional, group of healthcare professionals, patient, or representative
Example General: 123456
.... purpose Σ1..1CodingContext of activities covered by this rule
Binding: EprPurposeOfUse (required)

Required Pattern: At least the following
..... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: NORM
..... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code Σ1..1codeSymbol in syntax defined by the system

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Consent.identifier:policySetId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.valuerequiredPattern: 301
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmPolicySetTemplateId
from this IG
Consent.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1
from the FHIR Standard
Consent.scopeextensiblePattern: patient-privacy
http://hl7.org/fhir/ValueSet/consent-scope
from the FHIR Standard
Consent.categoryextensiblePattern: INFA
http://hl7.org/fhir/ValueSet/consent-category
from the FHIR Standard
Consent.policyRuleextensibleConsentPolicyRuleCodes
http://hl7.org/fhir/ValueSet/consent-policy
from the FHIR Standard
Consent.policyRule.codingrequiredPpqmReferencedPolicySetHcp
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetHcp
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-epr-term/ValueSet/EprRole
Consent.provision.actor.reference.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.provision.actor.reference.identifier.type.codingrequiredPpqmActorIdentifierType
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-epr-term/ValueSet/EprPurposeOfUse
Consent.provision.data.meaningrequiredConsentDataMeaning
http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-delegation-policy-or-end-dateerrorConsentA delegation policy OR the end date SHALL be set
: policyRule.coding.code.contains('delegation').empty() or provision.period.end.exists()
ch-epr-ppqm-template-structureerrorConsentThe resource shall correspond to one of official policy set templates
: conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate201') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate202') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate203') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate301') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate302') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate303')
ch-epr-ppqm-uuid-formaterrorConsent.identifier:policySetId.valueThe policy set ID must be a UUID in URN format
: lower().matches('^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$')
dom-2errorConsentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorConsentIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorConsentIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorConsentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceConsentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
epr-spid-lengthwarningConsent.patient.identifier.valueEPR-SPID must be exactly 18 characters long
: matches('^[0-9]{18}$')
epr-spid-modulus-10warningConsent.patient.identifier.valueEPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
: (((10-((68+(substring(8,1).toInteger()*3)+(substring(9,1).toInteger()*1)+(substring(10,1).toInteger()*3)+(substring(11,1).toInteger()*1)+(substring(12,1).toInteger()*3)+(substring(13,1).toInteger()*1)+(substring(14,1).toInteger()*3)+(substring(15,1).toInteger()*1)+(substring(16,1).toInteger()*3))mod(10)))mod(10))=substring(17,1).toInteger())
epr-spid-startswith76133761warningConsent.patient.identifier.valueEPR-SPID must start with 76133761
: startsWith('76133761')
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ppc-1errorConsentEither a Policy or PolicyRule
: policy.exists() or policyRule.exists()
ppc-2errorConsentIF Scope=privacy, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3errorConsentIF Scope=research, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4errorConsentIF Scope=adr, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5errorConsentIF Scope=treatment, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C0..*PpqmConsentA healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
ppc-1: Either a Policy or PolicyRule
ppc-2: IF Scope=privacy, there must be a patient
ppc-3: IF Scope=research, there must be a patient
ppc-4: IF Scope=adr, there must be a patient
ppc-5: IF Scope=treatment, there must be a patient
ch-epr-ppqm-template-structure: The resource shall correspond to one of official policy set templates
ch-epr-ppqm-delegation-policy-or-end-date: A delegation policy OR the end date SHALL be set
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... Slices for identifier Σ2..*IdentifierIdentifier for this record (external references)
Slice: Unordered, Open by pattern:type.coding

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
.... identifier:policySetId Σ1..1IdentifierUUID of the Policy Set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: policySetId
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... value ΣC1..1stringUUID of the policy set in URN format
ch-epr-ppqm-uuid-format: The policy set ID must be a UUID in URN format
Example General: 123456
.... identifier:templateId Σ1..1IdentifierTemplate ID of the policy set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ1..1CodingCode defined by a terminology system

Required Pattern: At least the following
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: templateId
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... value Σ1..1stringTemplate ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
Required Pattern: 301
... status ?!Σ1..1codeFixed status value
Binding: ConsentState (required): Indicates the state of the consent.


Required Pattern: active
... scope ?!Σ1..1CodeableConceptFixed scope value
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.


Required Pattern: At least the following
.... id0..1stringUnique id for inter-element referencing
.... extension0..*ExtensionAdditional content defined by implementations
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: patient-privacy
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
.... text0..1stringPlain text representation of the concept
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ1..1CodingCode defined by a terminology system
.... text Σ0..1stringPlain text representation of the concept
... category Σ1..1CodeableConceptFixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.



Required Pattern: At least the following
.... id0..1stringUnique id for inter-element referencing
.... extension0..*ExtensionAdditional content defined by implementations
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (complex)
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: INFA
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
.... text0..1stringPlain text representation of the concept
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ1..1CodingCode defined by a terminology system
.... text Σ0..1stringPlain text representation of the concept
... patient Σ1..1Reference(Patient)Who the consent applies to
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... identifier 1..1EPRSPIDIdentifierAn identifier intended for computation
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ1..1uriThe namespace for the identifier value
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC1..1stringThe value that is unique
epr-spid-length: EPR-SPID must be exactly 18 characters long
epr-spid-startswith76133761: EPR-SPID must start with 76133761
epr-spid-modulus-10: EPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
Example General: 123456
... policyRule ΣC1..1CodeableConceptID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.

.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Healthcare professionals (301) template (required)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ1..1uriIdentity of the terminology system
..... code Σ1..1codeSymbol in syntax defined by the system
..... display Σ0..1stringRepresentation defined by the system
.... text Σ0..1stringPlain text representation of the concept
... provision Σ1..1BackboneElementConstraints to the base Consent.policyRule
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... period Σ0..1PeriodTimeframe for this rule
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... start ΣC0..1dateTimeStart date of the policy set validity, yyyy-mm-dd
ch-epr-ppqm-date-format: Timestamp must have precision of days, i.e. not contain the time part
..... end ΣC1..1dateTimeEnd date of the policy set validity, yyyy-mm-dd
ch-epr-ppqm-date-format: Timestamp must have precision of days, i.e. not contain the time part
.... actor 1..1BackboneElementWho|what controlled by this rule (or group, by role)
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... role 1..1CodeableConceptHow the actor is involved
Binding: EprRole (required)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ0..*CodingCode defined by a terminology system

Required Pattern: At least the following
....... id0..1stringUnique id for inter-element referencing
....... extension0..*ExtensionAdditional content defined by implementations
....... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version0..1stringVersion of the system - if relevant
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: HCP
....... display0..1stringRepresentation defined by the system
....... userSelected0..1booleanIf this coding was chosen directly by the user
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version Σ0..1stringVersion of the system - if relevant
....... code Σ1..1codeEPR actor role code
....... display Σ0..1stringRepresentation defined by the system
....... userSelected Σ0..1booleanIf this coding was chosen directly by the user
...... text Σ0..1stringPlain text representation of the concept
..... reference 1..1Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole)Resource for the actor (or group, by role)
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... identifier 1..1GLNIdentifierAn identifier intended for computation
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
....... type Σ1..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

........ id 0..1stringUnique id for inter-element referencing
........ extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
........ coding Σ1..1CodingCode defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)
......... id 0..1stringUnique id for inter-element referencing
......... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
......... system Σ1..1uriIdentity of the terminology system
......... code Σ1..1codeActor identifier type code (name qualifier)
......... display Σ0..1stringRepresentation defined by the system
....... system Σ0..1uriThe namespace for the identifier value
Required Pattern: urn:oid:2.51.1.3
....... value Σ1..1stringID of an healthcare professional, group of healthcare professionals, patient, or representative
Example General: 123456
.... purpose Σ1..1CodingContext of activities covered by this rule
Binding: EprPurposeOfUse (required)

Required Pattern: At least the following
..... id0..1stringUnique id for inter-element referencing
..... extension0..*ExtensionAdditional content defined by implementations
..... system1..1uriIdentity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version0..1stringVersion of the system - if relevant
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: NORM
..... display0..1stringRepresentation defined by the system
..... userSelected0..1booleanIf this coding was chosen directly by the user
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ1..1uriIdentity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version Σ0..1stringVersion of the system - if relevant
..... code Σ1..1codeSymbol in syntax defined by the system
..... display Σ0..1stringRepresentation defined by the system
..... userSelected Σ0..1booleanIf this coding was chosen directly by the user

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Consent.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Consent.identifier:policySetId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.identifier:templateId.valuerequiredPattern: 301
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmPolicySetTemplateId
from this IG
Consent.statusrequiredPattern: active
http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1
from the FHIR Standard
Consent.scopeextensiblePattern: patient-privacy
http://hl7.org/fhir/ValueSet/consent-scope
from the FHIR Standard
Consent.categoryextensiblePattern: INFA
http://hl7.org/fhir/ValueSet/consent-category
from the FHIR Standard
Consent.policyRuleextensibleConsentPolicyRuleCodes
http://hl7.org/fhir/ValueSet/consent-policy
from the FHIR Standard
Consent.policyRule.codingrequiredPpqmReferencedPolicySetHcp
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetHcp
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-epr-term/ValueSet/EprRole
Consent.provision.actor.reference.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Consent.provision.actor.reference.identifier.type.codingrequiredPpqmActorIdentifierType
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-epr-term/ValueSet/EprPurposeOfUse
Consent.provision.data.meaningrequiredConsentDataMeaning
http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-date-formaterrorConsent.provision.period.start, Consent.provision.period.endTimestamp must have precision of days, i.e. not contain the time part
: toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
ch-epr-ppqm-delegation-policy-or-end-dateerrorConsentA delegation policy OR the end date SHALL be set
: policyRule.coding.code.contains('delegation').empty() or provision.period.end.exists()
ch-epr-ppqm-template-structureerrorConsentThe resource shall correspond to one of official policy set templates
: conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate201') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate202') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate203') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate301') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate302') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate303')
ch-epr-ppqm-uuid-formaterrorConsent.identifier:policySetId.valueThe policy set ID must be a UUID in URN format
: lower().matches('^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$')
dom-2errorConsentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorConsentIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorConsentIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorConsentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceConsentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
epr-spid-lengthwarningConsent.patient.identifier.valueEPR-SPID must be exactly 18 characters long
: matches('^[0-9]{18}$')
epr-spid-modulus-10warningConsent.patient.identifier.valueEPR-SPID must pass the modulus 10 check - https://www.gs1.org/services/how-calculate-check-digit-manually
: (((10-((68+(substring(8,1).toInteger()*3)+(substring(9,1).toInteger()*1)+(substring(10,1).toInteger()*3)+(substring(11,1).toInteger()*1)+(substring(12,1).toInteger()*3)+(substring(13,1).toInteger()*1)+(substring(14,1).toInteger()*3)+(substring(15,1).toInteger()*1)+(substring(16,1).toInteger()*3))mod(10)))mod(10))=substring(17,1).toInteger())
epr-spid-startswith76133761warningConsent.patient.identifier.valueEPR-SPID must start with 76133761
: startsWith('76133761')
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ppc-1errorConsentEither a Policy or PolicyRule
: policy.exists() or policyRule.exists()
ppc-2errorConsentIF Scope=privacy, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3errorConsentIF Scope=research, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4errorConsentIF Scope=adr, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5errorConsentIF Scope=treatment, there must be a patient
: patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()

This structure is derived from PpqmConsent

Summary

Mandatory: 2 elements
Prohibited: 1 element

Structures

This structure refers to these other structures:

 

Other representations of profile: CSV, Excel, Schematron