PackagesCanonicalsLogsProblems
    Packages
    fhir.ph.core@0.2.1
    https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-provenance
description: This profile identifies the resources described by an activity, when the activity was recorded, and the agents responsible for creating, updating, or transmitting the information.
package_name: fhir.ph.core
derivation: constraint
name: PHCoreProvenance
type: Provenance
elements:
  target:
    mustSupport: true
    index: 0
    elements:
      reference: {mustSupport: true, index: 1}
  recorded: {mustSupport: true, index: 2}
  location:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-location']
    index: 3
  agent:
    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()}
    mustSupport: true
    index: 4
    elements:
      type: {mustSupport: true, index: 5}
      who:
        type: Reference
        mustSupport: true
        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: 6
      onBehalfOf:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
        index: 7
    slicing:
      rules: open
      description: Agents classified by their participation type. Other agent types remain allowed.
      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: Agent responsible for creating or updating the information
            mustSupport: true
            array: true
            index: 8
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: author, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
                index: 9
              who:
                type: Reference
                mustSupport: true
                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: 10
              onBehalfOf:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
                index: 11
            required: [type]
        ProvenanceTransmitter:
          match:
            type:
              coding:
              - {code: transmitter, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
          schema:
            short: Agent that provided the copy to the receiving system
            mustSupport: true
            array: true
            index: 12
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: transmitter, system: 'http://terminology.hl7.org/CodeSystem/provenance-participant-type'}
                index: 13
              who:
                type: Reference
                mustSupport: true
                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: 14
              onBehalfOf:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization']
                index: 15
            required: [type]
package_version: 0.2.1
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.1