Guías de Implementación HL7 FHIR: CR Core
0.1.1-draft - ci-build Costa Rica flag

Guías de Implementación HL7 FHIR: CR Core, published by Ministerio de Salud de Costa Rica. This guide is not an authorized publication; it is the continuous build for version 0.1.1-draft built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HIE-cr/core-ig/ and changes regularly. See the Directory of published versions

Resource Profile: Procedencia de recursos

Official URL: https://ministeriodesalud.go.cr/fhir/core/StructureDefinition/provenance-cr-core Version: 0.1.1-draft
Standards status: Draft Maturity Level: 0 Computable Name: ProvenanceCrCore

Copyright/Legal: Usado con el permiso de HL7 International, todos los derechos resevados en los Licencias de HL7 Internacional.

Perfil CORE de Procedencia de un recurso (Provenance)

Usages:

  • This Profile is not used by any profiles in this Implementation Guide

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
.... reference ΣC 0..1 string URL absoluta del Recurso a validar
... recorded SΣ 0..1 instant Cuando se desarrolló el envío o actualización del Recurso
... location S 0..1 Reference(Ubicación de eventos) Referencia o identificación de la localización de donde ocurrió la actividad
... activity S 0..1 CodeableConcept Actividad que ocurrió
Binding: ProvenanceActivityType (extensible): ValueSet HL7 FHIR
... agent SΣC 1..* BackboneElement El actor que genera el recuso
Constraints: prov-1, prov-2, prov-3
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type SΣ 0..1 CodeableConcept Referencia a lo que ejecuta el actor
Binding: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity.
..... coding Σ 0..* Coding Code defined by a terminology system
Binding: ParticipationRoleType (extensible): ValueSet HL7 FHIR, tipo de agente
.... role S 0..1 CodeableConcept El rol especifico del agente
Binding: SecurityRoleType (example): The role that a provenance agent played with respect to the activity.
..... coding Σ 0..* Coding Code defined by a terminology system
Binding: SecurityRoleType (example): ValueSet HL7 FHIR, tipo de código
.... who SΣC 1..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Quien emite el recurso
..... reference ΣC 0..1 string Referencia al emisor del recurso
.... onBehalfOf C 0..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) The agent that delegated
... signature S 0..* Signature firma del target
.... type SΣ 0..* Coding Indicación de la razón por la que la entidad firmó el objeto o los objetos
Binding: SignatureTypeCodes (preferred): ValueSet Propósito de la firma
.... when SΣ 0..1 instant Hora y Fecha de cuando se firmó la validación
.... who SΣ 0..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Referencia al firmante
..... reference ΣC 0..1 string Referencia/identificación al recurso que identifica al firmante
.... sigFormat S 0..1 code Formato técnico de la firma
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Provenance.activityextensibleProvenanceActivityType
http://hl7.org/fhir/ValueSet/provenance-activity-type
From the FHIR Standard
Provenance.agent.typeexampleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.type.codingextensibleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.roleexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.agent.role.codingexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.signature.typepreferredSignatureTypeCodes
http://hl7.org/fhir/ValueSet/signature-type
From the FHIR Standard
Provenance.signature.sigFormatrequiredMimeTypes(a valid code from urn:ietf:bcp:13)
http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorProvenanceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorProvenanceIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorProvenanceIf 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-5errorProvenanceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceProvenanceA 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())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prov-1errorProvenance.agentWho and onBehalfOf cannot be the same
: who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2errorProvenance.agentIf who is a PractitionerRole, onBehalfOf can't reference the same Practitioner
: who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3errorProvenance.agentIf who is an organization, onBehalfOf can't be a PractitionerRole within that organization
: who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

This structure is derived from Provenance

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... target S 1..* Reference(Resource) Recurso que se desea validar
.... reference 0..1 string URL absoluta del Recurso a validar
... recorded S 0..1 instant Cuando se desarrolló el envío o actualización del Recurso
... location S 0..1 Reference(Ubicación de eventos) Referencia o identificación de la localización de donde ocurrió la actividad
... agent S 1..* BackboneElement El actor que genera el recuso
.... type S 0..1 CodeableConcept Referencia a lo que ejecuta el actor
..... coding 0..* Coding Code defined by a terminology system
Binding: ParticipationRoleType (extensible): ValueSet HL7 FHIR, tipo de agente
.... role S 0..1 CodeableConcept El rol especifico del agente
..... coding 0..* Coding Code defined by a terminology system
Binding: SecurityRoleType (example): ValueSet HL7 FHIR, tipo de código
.... who S 1..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Quien emite el recurso
..... reference 0..1 string Referencia al emisor del recurso
... signature S 0..* Signature firma del target
.... type S 0..* Coding Indicación de la razón por la que la entidad firmó el objeto o los objetos
Binding: SignatureTypeCodes (preferred): ValueSet Propósito de la firma
.... when S 0..1 instant Hora y Fecha de cuando se firmó la validación
.... who S 0..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Referencia al firmante
..... reference 0..1 string Referencia/identificación al recurso que identifica al firmante
.... sigFormat S 0..1 code Formato técnico de la firma

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Provenance.activityextensibleProvenanceActivityType
http://hl7.org/fhir/ValueSet/provenance-activity-type
From the FHIR Standard
Provenance.agent.type.codingextensibleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.role.codingexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.signature.typepreferredSignatureTypeCodes
http://hl7.org/fhir/ValueSet/signature-type
From the FHIR Standard
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... 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
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... target SΣ 1..* Reference(Resource) Recurso que se desea validar
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string URL absoluta del Recurso a validar
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... occurred[x] 0..1 When the activity occurred
.... occurredPeriod Period
.... occurredDateTime dateTime
... recorded SΣ 0..1 instant Cuando se desarrolló el envío o actualización del Recurso
... policy 0..* uri Policy or plan the activity was defined by
... location S 0..1 Reference(Ubicación de eventos) Referencia o identificación de la localización de donde ocurrió la actividad
... authorization 0..* CodeableReference() Authorization (purposeOfUse) related to the event
Binding: PurposeOfUse (example): The authorized purposeOfUse for the activity.
... activity S 0..1 CodeableConcept Actividad que ocurrió
Binding: ProvenanceActivityType (extensible): ValueSet HL7 FHIR
... basedOn 0..* Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest | Task) Workflow authorization within which this event occurred
... patient 0..1 Reference(Patient) The patient is the subject of the data created/updated (.target) by the activity
... encounter 0..1 Reference(Encounter) Encounter within which this event occurred or which the event is tightly associated
... agent SΣC 1..* BackboneElement El actor que genera el recuso
Constraints: prov-1, prov-2, prov-3
.... 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
.... type SΣ 0..1 CodeableConcept Referencia a lo que ejecuta el actor
Binding: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity.
..... id 0..1 id 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
Binding: ParticipationRoleType (extensible): ValueSet HL7 FHIR, tipo de agente
..... text Σ 0..1 string Plain text representation of the concept
.... role S 0..1 CodeableConcept El rol especifico del agente
Binding: SecurityRoleType (example): The role that a provenance agent played with respect to the activity.
..... id 0..1 id 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
Binding: SecurityRoleType (example): ValueSet HL7 FHIR, tipo de código
..... text Σ 0..1 string Plain text representation of the concept
.... who SΣC 1..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Quien emite el recurso
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Referencia al emisor del recurso
..... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
..... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
..... display ΣC 0..1 string Text alternative for the resource
.... onBehalfOf C 0..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) The agent that delegated
... entity Σ 0..* BackboneElement An entity used in this activity
.... 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 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
.... what Σ 1..1 Reference(Resource) Identity of entity
.... agent 0..* See agent (Provenance) Entity is attributed to this agent
... signature S 0..* Signature firma del target
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... type SΣ 0..* Coding Indicación de la razón por la que la entidad firmó el objeto o los objetos
Binding: SignatureTypeCodes (preferred): ValueSet Propósito de la firma
.... when SΣ 0..1 instant Hora y Fecha de cuando se firmó la validación
.... who SΣ 0..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Referencia al firmante
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Referencia/identificación al recurso que identifica al firmante
..... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
..... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
..... display ΣC 0..1 string Text alternative for the resource
.... onBehalfOf Σ 0..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) The party represented
.... targetFormat 0..1 code The technical format of the signed resources
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
.... sigFormat S 0..1 code Formato técnico de la firma
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
.... data 0..1 base64Binary The actual signature content (XML DigSig. JWS, picture, etc.)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Provenance.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
Provenance.target.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
Provenance.authorizationexamplePurposeOfUse
http://terminology.hl7.org/ValueSet/v3-PurposeOfUse
Provenance.activityextensibleProvenanceActivityType
http://hl7.org/fhir/ValueSet/provenance-activity-type
From the FHIR Standard
Provenance.agent.typeexampleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.type.codingextensibleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.roleexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.agent.role.codingexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.agent.who.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
Provenance.entity.rolerequiredProvenanceEntityRole
http://hl7.org/fhir/ValueSet/provenance-entity-role|5.0.0
From the FHIR Standard
Provenance.signature.typepreferredSignatureTypeCodes
http://hl7.org/fhir/ValueSet/signature-type
From the FHIR Standard
Provenance.signature.who.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
Provenance.signature.targetFormatrequiredMimeTypes(a valid code from urn:ietf:bcp:13)
http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
From the FHIR Standard
Provenance.signature.sigFormatrequiredMimeTypes(a valid code from urn:ietf:bcp:13)
http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorProvenanceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorProvenanceIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorProvenanceIf 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-5errorProvenanceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceProvenanceA 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())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prov-1errorProvenance.agentWho and onBehalfOf cannot be the same
: who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2errorProvenance.agentIf who is a PractitionerRole, onBehalfOf can't reference the same Practitioner
: who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3errorProvenance.agentIf who is an organization, onBehalfOf can't be a PractitionerRole within that organization
: who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
.... reference ΣC 0..1 string URL absoluta del Recurso a validar
... recorded SΣ 0..1 instant Cuando se desarrolló el envío o actualización del Recurso
... location S 0..1 Reference(Ubicación de eventos) Referencia o identificación de la localización de donde ocurrió la actividad
... activity S 0..1 CodeableConcept Actividad que ocurrió
Binding: ProvenanceActivityType (extensible): ValueSet HL7 FHIR
... agent SΣC 1..* BackboneElement El actor que genera el recuso
Constraints: prov-1, prov-2, prov-3
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type SΣ 0..1 CodeableConcept Referencia a lo que ejecuta el actor
Binding: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity.
..... coding Σ 0..* Coding Code defined by a terminology system
Binding: ParticipationRoleType (extensible): ValueSet HL7 FHIR, tipo de agente
.... role S 0..1 CodeableConcept El rol especifico del agente
Binding: SecurityRoleType (example): The role that a provenance agent played with respect to the activity.
..... coding Σ 0..* Coding Code defined by a terminology system
Binding: SecurityRoleType (example): ValueSet HL7 FHIR, tipo de código
.... who SΣC 1..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Quien emite el recurso
..... reference ΣC 0..1 string Referencia al emisor del recurso
.... onBehalfOf C 0..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) The agent that delegated
... signature S 0..* Signature firma del target
.... type SΣ 0..* Coding Indicación de la razón por la que la entidad firmó el objeto o los objetos
Binding: SignatureTypeCodes (preferred): ValueSet Propósito de la firma
.... when SΣ 0..1 instant Hora y Fecha de cuando se firmó la validación
.... who SΣ 0..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Referencia al firmante
..... reference ΣC 0..1 string Referencia/identificación al recurso que identifica al firmante
.... sigFormat S 0..1 code Formato técnico de la firma
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Provenance.activityextensibleProvenanceActivityType
http://hl7.org/fhir/ValueSet/provenance-activity-type
From the FHIR Standard
Provenance.agent.typeexampleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.type.codingextensibleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.roleexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.agent.role.codingexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.signature.typepreferredSignatureTypeCodes
http://hl7.org/fhir/ValueSet/signature-type
From the FHIR Standard
Provenance.signature.sigFormatrequiredMimeTypes(a valid code from urn:ietf:bcp:13)
http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorProvenanceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorProvenanceIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorProvenanceIf 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-5errorProvenanceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceProvenanceA 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())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prov-1errorProvenance.agentWho and onBehalfOf cannot be the same
: who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2errorProvenance.agentIf who is a PractitionerRole, onBehalfOf can't reference the same Practitioner
: who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3errorProvenance.agentIf who is an organization, onBehalfOf can't be a PractitionerRole within that organization
: who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

Differential View

This structure is derived from Provenance

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... target S 1..* Reference(Resource) Recurso que se desea validar
.... reference 0..1 string URL absoluta del Recurso a validar
... recorded S 0..1 instant Cuando se desarrolló el envío o actualización del Recurso
... location S 0..1 Reference(Ubicación de eventos) Referencia o identificación de la localización de donde ocurrió la actividad
... agent S 1..* BackboneElement El actor que genera el recuso
.... type S 0..1 CodeableConcept Referencia a lo que ejecuta el actor
..... coding 0..* Coding Code defined by a terminology system
Binding: ParticipationRoleType (extensible): ValueSet HL7 FHIR, tipo de agente
.... role S 0..1 CodeableConcept El rol especifico del agente
..... coding 0..* Coding Code defined by a terminology system
Binding: SecurityRoleType (example): ValueSet HL7 FHIR, tipo de código
.... who S 1..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Quien emite el recurso
..... reference 0..1 string Referencia al emisor del recurso
... signature S 0..* Signature firma del target
.... type S 0..* Coding Indicación de la razón por la que la entidad firmó el objeto o los objetos
Binding: SignatureTypeCodes (preferred): ValueSet Propósito de la firma
.... when S 0..1 instant Hora y Fecha de cuando se firmó la validación
.... who S 0..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Referencia al firmante
..... reference 0..1 string Referencia/identificación al recurso que identifica al firmante
.... sigFormat S 0..1 code Formato técnico de la firma

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Provenance.activityextensibleProvenanceActivityType
http://hl7.org/fhir/ValueSet/provenance-activity-type
From the FHIR Standard
Provenance.agent.type.codingextensibleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.role.codingexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.signature.typepreferredSignatureTypeCodes
http://hl7.org/fhir/ValueSet/signature-type
From the FHIR Standard

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Provenance 0..* Provenance Who, What, When for a set of resources
... 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
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... target SΣ 1..* Reference(Resource) Recurso que se desea validar
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string URL absoluta del Recurso a validar
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
.... display ΣC 0..1 string Text alternative for the resource
... occurred[x] 0..1 When the activity occurred
.... occurredPeriod Period
.... occurredDateTime dateTime
... recorded SΣ 0..1 instant Cuando se desarrolló el envío o actualización del Recurso
... policy 0..* uri Policy or plan the activity was defined by
... location S 0..1 Reference(Ubicación de eventos) Referencia o identificación de la localización de donde ocurrió la actividad
... authorization 0..* CodeableReference() Authorization (purposeOfUse) related to the event
Binding: PurposeOfUse (example): The authorized purposeOfUse for the activity.
... activity S 0..1 CodeableConcept Actividad que ocurrió
Binding: ProvenanceActivityType (extensible): ValueSet HL7 FHIR
... basedOn 0..* Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest | Task) Workflow authorization within which this event occurred
... patient 0..1 Reference(Patient) The patient is the subject of the data created/updated (.target) by the activity
... encounter 0..1 Reference(Encounter) Encounter within which this event occurred or which the event is tightly associated
... agent SΣC 1..* BackboneElement El actor que genera el recuso
Constraints: prov-1, prov-2, prov-3
.... 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
.... type SΣ 0..1 CodeableConcept Referencia a lo que ejecuta el actor
Binding: ParticipationRoleType (example): The type of participation that a provenance agent played with respect to the activity.
..... id 0..1 id 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
Binding: ParticipationRoleType (extensible): ValueSet HL7 FHIR, tipo de agente
..... text Σ 0..1 string Plain text representation of the concept
.... role S 0..1 CodeableConcept El rol especifico del agente
Binding: SecurityRoleType (example): The role that a provenance agent played with respect to the activity.
..... id 0..1 id 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
Binding: SecurityRoleType (example): ValueSet HL7 FHIR, tipo de código
..... text Σ 0..1 string Plain text representation of the concept
.... who SΣC 1..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Quien emite el recurso
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Referencia al emisor del recurso
..... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
..... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
..... display ΣC 0..1 string Text alternative for the resource
.... onBehalfOf C 0..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient) The agent that delegated
... entity Σ 0..* BackboneElement An entity used in this activity
.... 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 code revision | quotation | source | instantiates | removal
Binding: ProvenanceEntityRole (required): How an entity was used in an activity.
.... what Σ 1..1 Reference(Resource) Identity of entity
.... agent 0..* See agent (Provenance) Entity is attributed to this agent
... signature S 0..* Signature firma del target
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... type SΣ 0..* Coding Indicación de la razón por la que la entidad firmó el objeto o los objetos
Binding: SignatureTypeCodes (preferred): ValueSet Propósito de la firma
.... when SΣ 0..1 instant Hora y Fecha de cuando se firmó la validación
.... who SΣ 0..1 Reference(Profesional de Salud | Rol de Profesional de la Salud | Paciente | Organizaciones) Referencia al firmante
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Referencia/identificación al recurso que identifica al firmante
..... type Σ 0..1 uri Type the reference refers to (e.g. "Patient") - must be a resource in resources
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
..... identifier ΣC 0..1 Identifier Logical reference, when literal reference is not known
..... display ΣC 0..1 string Text alternative for the resource
.... onBehalfOf Σ 0..1 Reference(Practitioner | PractitionerRole | RelatedPerson | Patient | Device | Organization) The party represented
.... targetFormat 0..1 code The technical format of the signed resources
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
.... sigFormat S 0..1 code Formato técnico de la firma
Binding: MimeTypes (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)
.... data 0..1 base64Binary The actual signature content (XML DigSig. JWS, picture, etc.)

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Provenance.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
Provenance.target.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
Provenance.authorizationexamplePurposeOfUse
http://terminology.hl7.org/ValueSet/v3-PurposeOfUse
Provenance.activityextensibleProvenanceActivityType
http://hl7.org/fhir/ValueSet/provenance-activity-type
From the FHIR Standard
Provenance.agent.typeexampleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.type.codingextensibleParticipationRoleType
http://hl7.org/fhir/ValueSet/participation-role-type
From the FHIR Standard
Provenance.agent.roleexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.agent.role.codingexampleSecurityRoleType
http://hl7.org/fhir/ValueSet/security-role-type
From the FHIR Standard
Provenance.agent.who.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
Provenance.entity.rolerequiredProvenanceEntityRole
http://hl7.org/fhir/ValueSet/provenance-entity-role|5.0.0
From the FHIR Standard
Provenance.signature.typepreferredSignatureTypeCodes
http://hl7.org/fhir/ValueSet/signature-type
From the FHIR Standard
Provenance.signature.who.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
From the FHIR Standard
Provenance.signature.targetFormatrequiredMimeTypes(a valid code from urn:ietf:bcp:13)
http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
From the FHIR Standard
Provenance.signature.sigFormatrequiredMimeTypes(a valid code from urn:ietf:bcp:13)
http://hl7.org/fhir/ValueSet/mimetypes|5.0.0
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorProvenanceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorProvenanceIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorProvenanceIf 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-5errorProvenanceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceProvenanceA 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())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prov-1errorProvenance.agentWho and onBehalfOf cannot be the same
: who.resolve().exists() and onBehalfOf.resolve().exists() implies who.resolve() != onBehalfOf.resolve()
prov-2errorProvenance.agentIf who is a PractitionerRole, onBehalfOf can't reference the same Practitioner
: who.resolve().ofType(PractitionerRole).practitioner.resolve().exists() and onBehalfOf.resolve().ofType(Practitioner).exists() implies who.resolve().practitioner.resolve() != onBehalfOf.resolve()
prov-3errorProvenance.agentIf who is an organization, onBehalfOf can't be a PractitionerRole within that organization
: who.resolve().ofType(Organization).exists() and onBehalfOf.resolve().ofType(PractitionerRole).organization.resolve().exists() implies who.resolve() != onBehalfOf.resolve().organization.resolve()

 

Other representations of profile: CSV, Excel, Schematron