PackagesCanonicalsLogsProblems
    Packages
    fhir.ph.core@0.2.0
    https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-provenance
description: This profile localizes the FHIR R4 Provenance resource to the Philippine context, capturing key information about who, what, when, and where for a set of resources. It is used to track the authorship and history of healthcare data in Philippine health information systems.
package_name: fhir.ph.core
derivation: constraint
name: PHCoreProvenance
type: Provenance
elements:
  target:
    short: The Resource(s) this Provenance record supports
    mustSupport: true
    index: 0
    elements:
      reference: {mustSupport: true, index: 1}
  recorded: {short: Timestamp when the activity was recorded / updated, mustSupport: true, index: 2}
  location:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-location']
    index: 3
  reason:
    mustSupport: true
    index: 4
    elements:
      coding: {mustSupport: true, index: 5}
      text: {mustSupport: true, index: 6}
  activity:
    mustSupport: true
    index: 7
    elements:
      coding: {mustSupport: true, index: 8}
      text: {mustSupport: true, index: 9}
  agent:
    short: Actor(s) involved
    constraint:
      provenance-1: {human: onBehalfOf SHALL be present when Provenance.agent.who is a Practitioner or Device, source: 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-provenance', severity: error, expression: who.exists((resolve() is Practitioner) or (resolve() is Device)) implies onBehalfOf.exists()}
    index: 10
    elements:
      type:
        binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/provenance-agent-type'}
        mustSupport: true
        index: 11
      role:
        mustSupport: true
        index: 12
        elements:
          coding: {mustSupport: true, index: 13}
          text: {mustSupport: true, index: 14}
      who: {mustSupport: true, index: 15}
      onBehalfOf: {mustSupport: true, index: 16}
    slicing:
      rules: open
      ordered: false
      description: Slice based on the agent type code (author vs transmitter)
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        ProvenanceAuthor:
          match:
            type:
              coding:
              - {code: author, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
          schema:
            short: Author organization or individual responsible for the information
            mustSupport: true
            array: true
            index: 17
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: author, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
                index: 18
              role: {mustSupport: true, index: 19}
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitioner', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitionerrole', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-relatedperson']
                index: 20
              onBehalfOf:
                type: Reference
                refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
                index: 21
            required: [type]
        ProvenanceTransmitter:
          match:
            type:
              coding:
              - {code: transmitter, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
          schema:
            short: Transmitter that provided the information
            mustSupport: true
            array: true
            index: 22
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: transmitter, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
                index: 23
              role: {mustSupport: true, index: 24}
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitioner', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitionerrole', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-relatedperson']
                index: 25
              onBehalfOf:
                type: Reference
                refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
                index: 26
            required: [type]
package_version: 0.2.0
class: profile
kind: resource
url: https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-provenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 0.2.0