PackagesCanonicalsLogsProblems
    Packages
    il.pcmdemo.fhir.r4@0.1.4
    http://pcmdemo.health.org.il/StructureDefinition/pcm-consent-response
description: null
package_name: il.pcmdemo.fhir.r4
derivation: constraint
name: PcmConsentResponse
type: Consent
elements:
  patient:
    index: 10
    elements:
      reference: {index: 11}
      identifier:
        index: 12
        elements:
          system:
            pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/il-national-id'}
            index: 13
          value: {index: 14}
        required: [value, system]
    required: [identifier, reference]
  category:
    elements:
      coding:
        pattern:
          type: Coding
          value: {code: INFA, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: information access}
        index: 9
  provision:
    elements:
      type:
        pattern: {type: Code, value: permit}
        index: 23
      period:
        index: 24
        elements:
          start: {index: 25}
          end: {index: 26}
        required: [start, end]
      actor:
        index: 27
        elements:
          role:
            elements:
              coding:
                index: 28
                slicing:
                  rules: open
                  discriminator:
                  - {path: system, type: value}
                  - {path: code, type: value}
                  min: 1
                  slices:
                    serviceProvider:
                      match: {system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', code: IRCP}
                      schema:
                        index: 29
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                            index: 30
                          code:
                            pattern: {type: Code, value: IRCP}
                            index: 31
                          display:
                            pattern: {type: String, value: information recipient}
                            index: 32
                        required: [system, code]
                    dataSource:
                      match: {system: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', code: CST}
                      schema:
                        array: true
                        index: 33
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'}
                            index: 34
                          code:
                            pattern: {type: Code, value: CST}
                            index: 35
                          display:
                            pattern: {type: String, value: custodian}
                            index: 36
                        required: [system, code]
            required: [coding]
          reference:
            type: Reference
            refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
            index: 37
            elements:
              reference: {index: 38}
            required: [reference]
    required: [period, actor]
  verification:
    index: 16
    elements:
      verified:
        pattern: {type: Boolean, value: true}
        index: 17
      verifiedWith:
        index: 18
        elements:
          identifier:
            index: 19
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/il-national-id'}
                index: 20
              value: {index: 21}
            required: [value, system]
        required: [identifier]
      verificationDate: {index: 22}
    required: [verifiedWith, verificationDate]
  scope:
    elements:
      coding:
        pattern:
          type: Coding
          value: {code: patient-privacy, system: 'http://terminology.hl7.org/CodeSystem/consentscope', display: Privacy Consent}
        index: 8
  dateTime: {index: 15}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        pcm-service:
          match: {url: null}
          schema: {type: Extension, url: 'http://pcmdemo.health.org.il/StructureDefinition/pcm-service', index: 1}
          min: 1
  status:
    pattern: {type: Code, value: active}
    index: 7
  identifier:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        pcm:
          match: {system: 'http://fhir.health.gov.il/identifier/pcm-consent-id'}
          schema:
            _required: true
            index: 3
            elements:
              use:
                pattern: {type: Code, value: official}
                index: 4
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/pcm-consent-id'}
                index: 5
              value: {index: 6}
            required: [value, system]
package_version: 0.1.4
extensions:
  pcm-service: {url: 'http://pcmdemo.health.org.il/StructureDefinition/pcm-service', min: 1, type: Extension, index: 1}
class: profile
kind: resource
url: http://pcmdemo.health.org.il/StructureDefinition/pcm-consent-response
base: http://hl7.org/fhir/StructureDefinition/Consent
version: 0.1.0
required: [verification, dateTime, extension, identifier, patient]