CH EPR FHIR (R4)
4.0.1 - trial-use Switzerland flag

This page is part of the CH EPR FHIR (R4) (v4.0.1: DSTU 4) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Resource Profile: EPR policy set based on template 302

Official URL: http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate302 Version: 4.0.1
Active as of 2024-12-18 Computable Name: PpqmConsentTemplate302

Copyright/Legal: CC0-1.0

EPR policy set based on template 302 – gives a group of healthcare professionals read access to the patient's EPR, without delegation rights.

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 0..* PpqmConsent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
... Slices for identifier Content/Rules for all slices
.... identifier:templateId 1..1 Identifier Template ID of the policy set
..... value 1..1 string Template ID of the policy set
Required Pattern: 302
... policyRule
.... coding 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Emergency Access (202) and HCP Group (302) templates (required)
... provision
.... actor
..... role
...... coding 0..* Coding Code defined by a terminology system
Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: HCP
..... reference
...... identifier C 1..1 Identifier This element is present only in policy sets which reference a particular healthcare professional, group of healthcare professionals, patient, or representative
ch-epr-ppqm-oid-format: The value SHALL be an OID in URN format
....... type
........ coding 1..1 Coding Code defined by a terminology system
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: urn:ietf:rfc:3986
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: urn:oasis:names:tc:xspa:1.0:subject:organization-id
...... display 0..0
.... purpose 1..1 Coding Context of activities covered by this rule
Required Pattern: At least the following
..... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: NORM

doco Documentation for this format

Terminology Bindings (Differential)

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

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-oid-formaterrorConsent.provision.actor.reference.identifierThe value SHALL be an OID in URN format
: value.lower().matches('^urn:oid:([0-2])((\\.0)|(\\.[1-9][0-9]*))*$')
NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C 0..* PpqmConsent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
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
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... Slices for identifier Σ 2..* Identifier Identifier for this record (external references)
Slice: Unordered, Open by value:type.coding
ele-1: All FHIR elements must have a @value or children

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
.... identifier:policySetId Σ 1..1 Identifier UUID of the Policy Set
ele-1: All FHIR elements must have a @value or children

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ 1..1 CodeableConcept Description 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.


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: policySetId
..... value ΣC 1..1 string UUID of the policy set in URN format
ele-1: All FHIR elements must have a @value or children
ch-epr-ppqm-uuid-format: The policy set ID must be a UUID in URN format
Example General: 123456
.... identifier:templateId Σ 1..1 Identifier Template ID of the policy set
ele-1: All FHIR elements must have a @value or children

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ 1..1 CodeableConcept Description 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.


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: templateId
..... value Σ 1..1 string Template ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
ele-1: All FHIR elements must have a @value or children
Required Pattern: 302
... scope ?!Σ 1..1 CodeableConcept Fixed scope value
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.


ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: patient-privacy
.... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
... category Σ 1..1 CodeableConcept Fixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.


ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: INFA
.... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
... patient Σ 1..1 Reference(Patient) Who the consent applies to
ele-1: All FHIR elements must have a @value or children
.... identifier 1..1 EPRSPIDIdentifier An identifier intended for computation
ele-1: All FHIR elements must have a @value or children
..... system Σ 1..1 uri The namespace for the identifier value
ele-1: All FHIR elements must have a @value or children
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC 1..1 string The value that is unique
ele-1: All FHIR elements must have a @value or children
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 ΣC 1..1 CodeableConcept ID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.


ele-1: All FHIR elements must have a @value or children
.... coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Emergency Access (202) and HCP Group (302) templates (required)
ele-1: All FHIR elements must have a @value or children
..... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
..... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
... provision Σ 1..1 BackboneElement Constraints to the base Consent.policyRule
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... actor 1..1 BackboneElement Who|what controlled by this rule (or group, by role)
ele-1: All FHIR elements must have a @value or children
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... role 1..1 CodeableConcept How the actor is involved
Binding: EprRole (required)
ele-1: All FHIR elements must have a @value or children
...... coding Σ 0..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: HCP
....... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code Σ 1..1 code EPR actor role code
ele-1: All FHIR elements must have a @value or children
..... reference 1..1 Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Resource for the actor (or group, by role)
ele-1: All FHIR elements must have a @value or children
...... identifier ΣC 1..1 Identifier This element is present only in policy sets which reference a particular healthcare professional, group of healthcare professionals, patient, or representative
ele-1: All FHIR elements must have a @value or children
ch-epr-ppqm-oid-format: The value SHALL be an OID in URN format
....... type Σ 1..1 CodeableConcept Description 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.


ele-1: All FHIR elements must have a @value or children
........ coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: urn:ietf:rfc:3986
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: urn:oasis:names:tc:xspa:1.0:subject:organization-id
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Actor identifier type code (name qualifier)
ele-1: All FHIR elements must have a @value or children
....... value Σ 1..1 string ID of an healthcare professional, group of healthcare professionals, patient, or representative
ele-1: All FHIR elements must have a @value or children
Example General: 123456
.... purpose Σ 1..1 Coding Context of activities covered by this rule
Binding: EprPurposeOfUse (required)
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
..... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: NORM
..... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children

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: 302
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.codingrequiredPpqmReferencedPolicySetGroupEmergency
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetGroupEmergency
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-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.codingrequiredPattern: urn:oasis:names:tc:xspa:1.0:subject:organization-id
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-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-oid-formaterrorConsent.provision.actor.reference.identifierThe value SHALL be an OID in URN format
: value.lower().matches('^urn:oid:([0-2])((\\.0)|(\\.[1-9][0-9]*))*$')
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') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate304')
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 C 0..* PpqmConsent A 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
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... Slices for identifier Σ 2..* Identifier Identifier for this record (external references)
Slice: Unordered, Open by value:type.coding

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

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ 1..1 CodeableConcept Description 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..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: policySetId
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... value ΣC 1..1 string UUID 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..1 Identifier Template ID of the policy set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ 1..1 CodeableConcept Description 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..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: templateId
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... value Σ 1..1 string Template ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
Required Pattern: 302
... status ?!Σ 1..1 code Fixed status value
Binding: ConsentState (required): Indicates the state of the consent.


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


Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: patient-privacy
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... category Σ 1..1 CodeableConcept Fixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.



Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: INFA
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... patient Σ 1..1 Reference(Patient) Who the consent applies to
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... identifier 1..1 EPRSPIDIdentifier An identifier intended for computation
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri The namespace for the identifier value
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC 1..1 string The 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 ΣC 1..1 CodeableConcept ID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.

.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Emergency Access (202) and HCP Group (302) templates (required)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri Identity of the terminology system
..... code Σ 1..1 code Symbol in syntax defined by the system
..... display Σ 0..1 string Representation defined by the system
.... text Σ 0..1 string Plain text representation of the concept
... provision Σ 1..1 BackboneElement Constraints to the base Consent.policyRule
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... period Σ 0..1 Period Timeframe for this rule
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... start ΣC 0..1 dateTime Start 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 ΣC 1..1 dateTime End 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..1 BackboneElement Who|what controlled by this rule (or group, by role)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... role 1..1 CodeableConcept How the actor is involved
Binding: EprRole (required)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 0..* Coding Code defined by a terminology system

Required Pattern: At least the following
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: HCP
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version Σ 0..1 string Version of the system - if relevant
....... code Σ 1..1 code EPR actor role code
....... display Σ 0..1 string Representation defined by the system
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... reference 1..1 Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Resource for the actor (or group, by role)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... identifier ΣC 1..1 Identifier This element is present only in policy sets which reference a particular healthcare professional, group of healthcare professionals, patient, or representative
ch-epr-ppqm-oid-format: The value SHALL be an OID in URN format
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... type Σ 1..1 CodeableConcept Description 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..1 string Unique id for inter-element referencing
........ extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
........ coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)

Required Pattern: At least the following
......... id 0..1 string Unique id for inter-element referencing
......... extension 0..* Extension Additional content defined by implementations
......... system 1..1 uri Identity of the terminology system
Fixed Value: urn:ietf:rfc:3986
......... version 0..1 string Version of the system - if relevant
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: urn:oasis:names:tc:xspa:1.0:subject:organization-id
......... display 0..1 string Representation defined by the system
......... userSelected 0..1 boolean If this coding was chosen directly by the user
......... id 0..1 string Unique id for inter-element referencing
......... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
......... system Σ 1..1 uri Identity of the terminology system
......... code Σ 1..1 code Actor identifier type code (name qualifier)
......... display Σ 0..1 string Representation defined by the system
....... system Σ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
....... value Σ 1..1 string ID of an healthcare professional, group of healthcare professionals, patient, or representative
Example General: 123456
.... purpose Σ 1..1 Coding Context of activities covered by this rule
Binding: EprPurposeOfUse (required)

Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: NORM
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version Σ 0..1 string Version of the system - if relevant
..... code Σ 1..1 code Symbol in syntax defined by the system
..... display Σ 0..1 string Representation defined by the system
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Consent.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
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: 302
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.codingrequiredPpqmReferencedPolicySetGroupEmergency
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetGroupEmergency
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-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.codingrequiredPattern: urn:oasis:names:tc:xspa:1.0:subject:organization-id
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-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-oid-formaterrorConsent.provision.actor.reference.identifierThe value SHALL be an OID in URN format
: value.lower().matches('^urn:oid:([0-2])((\\.0)|(\\.[1-9][0-9]*))*$')
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') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate304')
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

Differential View

This structure is derived from PpqmConsent

NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent 0..* PpqmConsent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
... Slices for identifier Content/Rules for all slices
.... identifier:templateId 1..1 Identifier Template ID of the policy set
..... value 1..1 string Template ID of the policy set
Required Pattern: 302
... policyRule
.... coding 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Emergency Access (202) and HCP Group (302) templates (required)
... provision
.... actor
..... role
...... coding 0..* Coding Code defined by a terminology system
Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: HCP
..... reference
...... identifier C 1..1 Identifier This element is present only in policy sets which reference a particular healthcare professional, group of healthcare professionals, patient, or representative
ch-epr-ppqm-oid-format: The value SHALL be an OID in URN format
....... type
........ coding 1..1 Coding Code defined by a terminology system
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: urn:ietf:rfc:3986
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: urn:oasis:names:tc:xspa:1.0:subject:organization-id
...... display 0..0
.... purpose 1..1 Coding Context of activities covered by this rule
Required Pattern: At least the following
..... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: NORM

doco Documentation for this format

Terminology Bindings (Differential)

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

Constraints

IdGradePath(s)DetailsRequirements
ch-epr-ppqm-oid-formaterrorConsent.provision.actor.reference.identifierThe value SHALL be an OID in URN format
: value.lower().matches('^urn:oid:([0-2])((\\.0)|(\\.[1-9][0-9]*))*$')

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Consent C 0..* PpqmConsent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
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
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... Slices for identifier Σ 2..* Identifier Identifier for this record (external references)
Slice: Unordered, Open by value:type.coding
ele-1: All FHIR elements must have a @value or children

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
.... identifier:policySetId Σ 1..1 Identifier UUID of the Policy Set
ele-1: All FHIR elements must have a @value or children

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ 1..1 CodeableConcept Description 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.


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: policySetId
..... value ΣC 1..1 string UUID of the policy set in URN format
ele-1: All FHIR elements must have a @value or children
ch-epr-ppqm-uuid-format: The policy set ID must be a UUID in URN format
Example General: 123456
.... identifier:templateId Σ 1..1 Identifier Template ID of the policy set
ele-1: All FHIR elements must have a @value or children

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... type Σ 1..1 CodeableConcept Description 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.


ele-1: All FHIR elements must have a @value or children
...... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: templateId
..... value Σ 1..1 string Template ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
ele-1: All FHIR elements must have a @value or children
Required Pattern: 302
... scope ?!Σ 1..1 CodeableConcept Fixed scope value
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.


ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: patient-privacy
.... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
... category Σ 1..1 CodeableConcept Fixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.


ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: INFA
.... coding Σ 1..1 Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children
... patient Σ 1..1 Reference(Patient) Who the consent applies to
ele-1: All FHIR elements must have a @value or children
.... identifier 1..1 EPRSPIDIdentifier An identifier intended for computation
ele-1: All FHIR elements must have a @value or children
..... system Σ 1..1 uri The namespace for the identifier value
ele-1: All FHIR elements must have a @value or children
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC 1..1 string The value that is unique
ele-1: All FHIR elements must have a @value or children
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 ΣC 1..1 CodeableConcept ID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.


ele-1: All FHIR elements must have a @value or children
.... coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Emergency Access (202) and HCP Group (302) templates (required)
ele-1: All FHIR elements must have a @value or children
..... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
..... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
... provision Σ 1..1 BackboneElement Constraints to the base Consent.policyRule
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... actor 1..1 BackboneElement Who|what controlled by this rule (or group, by role)
ele-1: All FHIR elements must have a @value or children
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... role 1..1 CodeableConcept How the actor is involved
Binding: EprRole (required)
ele-1: All FHIR elements must have a @value or children
...... coding Σ 0..* Coding Code defined by a terminology system
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
....... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: HCP
....... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... code Σ 1..1 code EPR actor role code
ele-1: All FHIR elements must have a @value or children
..... reference 1..1 Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Resource for the actor (or group, by role)
ele-1: All FHIR elements must have a @value or children
...... identifier ΣC 1..1 Identifier This element is present only in policy sets which reference a particular healthcare professional, group of healthcare professionals, patient, or representative
ele-1: All FHIR elements must have a @value or children
ch-epr-ppqm-oid-format: The value SHALL be an OID in URN format
....... type Σ 1..1 CodeableConcept Description 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.


ele-1: All FHIR elements must have a @value or children
........ coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: urn:ietf:rfc:3986
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: urn:oasis:names:tc:xspa:1.0:subject:organization-id
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Actor identifier type code (name qualifier)
ele-1: All FHIR elements must have a @value or children
....... value Σ 1..1 string ID of an healthcare professional, group of healthcare professionals, patient, or representative
ele-1: All FHIR elements must have a @value or children
Example General: 123456
.... purpose Σ 1..1 Coding Context of activities covered by this rule
Binding: EprPurposeOfUse (required)
ele-1: All FHIR elements must have a @value or children

Required Pattern: At least the following
..... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: NORM
..... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children

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: 302
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.codingrequiredPpqmReferencedPolicySetGroupEmergency
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetGroupEmergency
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-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.codingrequiredPattern: urn:oasis:names:tc:xspa:1.0:subject:organization-id
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-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-oid-formaterrorConsent.provision.actor.reference.identifierThe value SHALL be an OID in URN format
: value.lower().matches('^urn:oid:([0-2])((\\.0)|(\\.[1-9][0-9]*))*$')
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') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate304')
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 C 0..* PpqmConsent A 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
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... Slices for identifier Σ 2..* Identifier Identifier for this record (external references)
Slice: Unordered, Open by value:type.coding

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

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ 1..1 CodeableConcept Description 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..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: policySetId
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... value ΣC 1..1 string UUID 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..1 Identifier Template ID of the policy set

Example General: {"system":"http://acme.org/identifier/local/eCMS","value":"Local eCMS identifier"}
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... type Σ 1..1 CodeableConcept Description 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..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 1..1 Coding Code defined by a terminology system

Required Pattern: At least the following
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 1..1 uri Identity of the terminology system
Fixed Value: http://fhir.ch/ig/ch-epr-fhir/CodeSystem/PpqmConsentIdentifierType
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: templateId
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... value Σ 1..1 string Template ID of the policy set
Binding: CH PPQm Policy Set Template ID (required)
Required Pattern: 302
... status ?!Σ 1..1 code Fixed status value
Binding: ConsentState (required): Indicates the state of the consent.


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


Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: patient-privacy
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... category Σ 1..1 CodeableConcept Fixed category value
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.



Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... coding 1..* Coding Code defined by a terminology system
Fixed Value: (complex)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: INFA
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
.... text 0..1 string Plain text representation of the concept
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
.... text Σ 0..1 string Plain text representation of the concept
... patient Σ 1..1 Reference(Patient) Who the consent applies to
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... identifier 1..1 EPRSPIDIdentifier An identifier intended for computation
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri The namespace for the identifier value
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.3
..... value ΣC 1..1 string The 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 ΣC 1..1 CodeableConcept ID of the referenced basis policy set
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.

.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Referenced Policy Set for Emergency Access (202) and HCP Group (302) templates (required)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri Identity of the terminology system
..... code Σ 1..1 code Symbol in syntax defined by the system
..... display Σ 0..1 string Representation defined by the system
.... text Σ 0..1 string Plain text representation of the concept
... provision Σ 1..1 BackboneElement Constraints to the base Consent.policyRule
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... period Σ 0..1 Period Timeframe for this rule
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... start ΣC 0..1 dateTime Start 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 ΣC 1..1 dateTime End 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..1 BackboneElement Who|what controlled by this rule (or group, by role)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
..... role 1..1 CodeableConcept How the actor is involved
Binding: EprRole (required)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 0..* Coding Code defined by a terminology system

Required Pattern: At least the following
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
....... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version 0..1 string Version of the system - if relevant
....... code 1..1 code Symbol in syntax defined by the system
Fixed Value: HCP
....... display 0..1 string Representation defined by the system
....... userSelected 0..1 boolean If this coding was chosen directly by the user
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.6
....... version Σ 0..1 string Version of the system - if relevant
....... code Σ 1..1 code EPR actor role code
....... display Σ 0..1 string Representation defined by the system
....... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
...... text Σ 0..1 string Plain text representation of the concept
..... reference 1..1 Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Resource for the actor (or group, by role)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... identifier ΣC 1..1 Identifier This element is present only in policy sets which reference a particular healthcare professional, group of healthcare professionals, patient, or representative
ch-epr-ppqm-oid-format: The value SHALL be an OID in URN format
....... id 0..1 string Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... type Σ 1..1 CodeableConcept Description 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..1 string Unique id for inter-element referencing
........ extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
........ coding Σ 1..1 Coding Code defined by a terminology system
Binding: CH PPQm Actor Identifier Type (required)

Required Pattern: At least the following
......... id 0..1 string Unique id for inter-element referencing
......... extension 0..* Extension Additional content defined by implementations
......... system 1..1 uri Identity of the terminology system
Fixed Value: urn:ietf:rfc:3986
......... version 0..1 string Version of the system - if relevant
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: urn:oasis:names:tc:xspa:1.0:subject:organization-id
......... display 0..1 string Representation defined by the system
......... userSelected 0..1 boolean If this coding was chosen directly by the user
......... id 0..1 string Unique id for inter-element referencing
......... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
......... system Σ 1..1 uri Identity of the terminology system
......... code Σ 1..1 code Actor identifier type code (name qualifier)
......... display Σ 0..1 string Representation defined by the system
....... system Σ 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
....... value Σ 1..1 string ID of an healthcare professional, group of healthcare professionals, patient, or representative
Example General: 123456
.... purpose Σ 1..1 Coding Context of activities covered by this rule
Binding: EprPurposeOfUse (required)

Required Pattern: At least the following
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
..... system 1..1 uri Identity of the terminology system
Fixed Value: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version 0..1 string Version of the system - if relevant
..... code 1..1 code Symbol in syntax defined by the system
Fixed Value: NORM
..... display 0..1 string Representation defined by the system
..... userSelected 0..1 boolean If this coding was chosen directly by the user
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri Identity of the terminology system
Required Pattern: urn:oid:2.16.756.5.30.1.127.3.10.5
..... version Σ 0..1 string Version of the system - if relevant
..... code Σ 1..1 code Symbol in syntax defined by the system
..... display Σ 0..1 string Representation defined by the system
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / CodeURI
Consent.languagepreferredCommonLanguages
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Additional Bindings Purpose
AllLanguages Max Binding
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: 302
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.codingrequiredPpqmReferencedPolicySetGroupEmergency
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmReferencedPolicySetGroupEmergency
from this IG
Consent.provision.actor.rolerequiredEprRole
http://fhir.ch/ig/ch-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.codingrequiredPattern: urn:oasis:names:tc:xspa:1.0:subject:organization-id
http://fhir.ch/ig/ch-epr-fhir/ValueSet/PpqmActorIdentifierType
from this IG
Consent.provision.purposerequiredPattern: NORM
http://fhir.ch/ig/ch-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-oid-formaterrorConsent.provision.actor.reference.identifierThe value SHALL be an OID in URN format
: value.lower().matches('^urn:oid:([0-2])((\\.0)|(\\.[1-9][0-9]*))*$')
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') or conformsTo('http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/PpqmConsentTemplate304')
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

 

Other representations of profile: CSV, Excel, Schematron