PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh-setp@1.0.37
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-DocumentReference
description: This profile defines a set of constraints to the FHIR DocumentReference resource for use in Ontario Patient Summaries (PS-ON). This profile is based on the DocumentReference profile from the base R4 FHIR standard.
package_name: ca.on.oh-setp
derivation: constraint
name: DocumentReferencePSON
type: DocumentReference
elements:
  category:
    mustSupport: true
    index: 7
    extensions:
      ext-LOINC-ontology-axis: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 8}
    elements:
      extension:
        type: Extension
        isModifier: false
        mustSupport: true
        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
        index: 8
        slicing:
          slices:
            ext-LOINC-ontology-axis:
              match: {}
              schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis', index: 8}
              max: 1
      coding:
        mustSupport: true
        index: 9
        elements:
          system: {mustSupport: true, index: 10}
          code: {mustSupport: true, index: 11}
          display: {mustSupport: true, index: 12}
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        sliceCategory-type-of-service:
          match: {}
          schema:
            mustSupport: true
            index: 13
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 15
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74478-9}
                        index: 16
                      display: {label: Type of Service, index: 17}
            elements:
              extension:
                index: 14
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 15
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74478-9}
                                index: 16
                              display: {label: Type of Service, index: 17}
              coding:
                mustSupport: true
                index: 18
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 19
                  code: {mustSupport: true, index: 20}
                  display:
                    pattern: {type: String, value: Patient summary}
                    mustSupport: true
                    index: 21
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-kind-of-document:
          match: {}
          schema:
            mustSupport: true
            index: 22
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 24
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74477-1}
                        index: 25
                      display:
                        pattern: {type: String, value: Kind of document}
                        index: 26
            elements:
              extension:
                index: 23
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 24
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74477-1}
                                index: 25
                              display:
                                pattern: {type: String, value: Kind of document}
                                index: 26
              coding:
                mustSupport: true
                index: 27
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 28
                  code:
                    pattern: {type: Code, value: LP173418-7}
                    mustSupport: true
                    index: 29
                  display:
                    pattern: {type: String, value: Note}
                    mustSupport: true
                    index: 30
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-subject-matter-domain:
          match: {}
          schema:
            mustSupport: true
            index: 31
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 33
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74480-5}
                        index: 34
                      display:
                        pattern: {type: String, value: Subject matter domain}
                        index: 35
            elements:
              extension:
                index: 32
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 33
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74480-5}
                                index: 34
                              display:
                                pattern: {type: String, value: Subject matter domain}
                                index: 35
              coding:
                mustSupport: true
                index: 36
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 37
                  code:
                    pattern: {type: Code, value: CGTA1009-1}
                    mustSupport: true
                    index: 38
                  display:
                    pattern: {type: String, value: Unspecified}
                    mustSupport: true
                    index: 39
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-role:
          match: {}
          schema:
            mustSupport: true
            index: 40
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 42
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74479-7}
                        index: 43
                      display:
                        pattern: {type: String, value: Role}
                        index: 44
            elements:
              extension:
                index: 41
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 42
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74479-7}
                                index: 43
                              display:
                                pattern: {type: String, value: Role}
                                index: 44
              coding:
                mustSupport: true
                index: 45
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 46
                  code:
                    pattern: {type: Code, value: CGTA4001-1}
                    mustSupport: true
                    index: 47
                  display:
                    pattern: {type: String, value: Unspecified}
                    index: 48
                required: [display, system, code]
            required: [extension, coding]
        sliceCategory-setting:
          match: {}
          schema:
            mustSupport: true
            index: 49
            extensions:
              ext-LOINC-ontology-axis:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                type: Extension
                isModifier: false
                mustSupport: true
                index: 51
                elements:
                  value[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: 74476-3}
                        index: 52
                      display:
                        pattern: {type: String, value: Setting}
                        index: 53
            elements:
              extension:
                index: 50
                slicing:
                  slices:
                    ext-LOINC-ontology-axis:
                      match: {}
                      schema:
                        type: Extension
                        isModifier: false
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-loinc-ontology-axis
                        index: 51
                        elements:
                          value[x]:
                            elements:
                              code:
                                pattern: {type: Code, value: 74476-3}
                                index: 52
                              display:
                                pattern: {type: String, value: Setting}
                                index: 53
              coding:
                mustSupport: true
                index: 54
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    mustSupport: true
                    index: 55
                  code:
                    pattern: {type: Code, value: CGTA5001-1}
                    mustSupport: true
                    index: 56
                  display:
                    pattern: {type: String, value: Unspecified}
                    mustSupport: true
                    index: 57
                required: [display, system, code]
            required: [extension, coding]
  date: {mustSupport: true, index: 59}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-DocumentReference'}
        index: 1
    required: [profile]
  docStatus: {mustSupport: true, index: 5}
  content:
    mustSupport: true
    index: 64
    elements:
      attachment:
        mustSupport: true
        index: 65
        elements:
          url: {mustSupport: true, index: 66}
  type:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 60591-5, system: 'http://loinc.org'}
    index: 6
  author:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-Organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-PractitionerRole']
    index: 60
    elements:
      reference: {mustSupport: true, index: 61}
    required: [reference]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-Organization']
    index: 62
    elements:
      reference: {mustSupport: true, index: 63}
    required: [reference]
  identifier:
    mustSupport: true
    index: 2
    elements:
      system: {mustSupport: true, index: 3}
      value: {mustSupport: true, index: 4}
    required: [value, system]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-Patient']
    index: 58
package_version: 1.0.37
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-DocumentReference
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 0.12.0
required: [docStatus, subject, type, meta, custodian]