PackagesCanonicalsLogsProblems
    Packages
    ndhm.in@2.0.1
    https://nrces.in/ndhm/fhir/r4/StructureDefinition/OPConsultRecord
description: The Clinical Artifact represents the outpatient visit consultation note which may include clinical information on any OP examinations, procedures along with medication administered, and advice that can be shared across the health ecosystem.
package_name: ndhm.in
derivation: constraint
name: OPConsultRecord
type: Composition
elements:
  date: {mustSupport: true, index: 10}
  encounter:
    type: Reference
    mustSupport: true
    refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter']
    index: 9
  section:
    mustSupport: true
    index: 17
    slicing:
      rules: openAtEnd
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      slices:
        MedicalHistory:
          match:
            code:
              coding: {code: '371529009'}
          schema:
            index: 42
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 43
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 44
                      code:
                        pattern: {type: Code, value: '371529009'}
                        index: 45
                      display:
                        pattern: {type: String, value: History and physical report}
                        index: 46
                    required: [display, code]
                  text: {mustSupport: true, index: 47}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Condition', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Procedure']
                index: 48
                elements:
                  reference: {index: 49}
                required: [reference]
        DocumentReference:
          match:
            code:
              coding: {code: '371530004'}
          schema:
            index: 90
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 91
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 92
                      code:
                        pattern: {type: Code, value: '371530004'}
                        index: 93
                      display:
                        pattern: {type: String, value: Clinical consultation report}
                        index: 94
                    required: [display, code]
                  text: {mustSupport: true, index: 95}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentReference']
                index: 96
                elements:
                  reference: {index: 97}
                required: [reference]
        Allergies:
          match:
            code:
              coding: {code: '722446000'}
          schema:
            index: 34
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 35
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 36
                      code:
                        pattern: {type: Code, value: '722446000'}
                        index: 37
                      display:
                        pattern: {type: String, value: Allergy record}
                        index: 38
                    required: [display, code]
                  text: {mustSupport: true, index: 39}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/AllergyIntolerance']
                index: 40
                elements:
                  reference: {index: 41}
                required: [reference]
        FollowUp:
          match:
            code:
              coding: {code: '736271009'}
          schema:
            index: 74
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 75
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 76
                      code:
                        pattern: {type: Code, value: '736271009'}
                        index: 77
                      display:
                        pattern: {type: String, value: Outpatient care plan}
                        index: 78
                    required: [display, code]
                  text: {mustSupport: true, index: 79}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Appointment']
                index: 80
                elements:
                  reference: {index: 81}
                required: [reference]
        ChiefComplaints:
          match:
            code:
              coding: {code: '422843007'}
          schema:
            index: 18
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 19
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 20
                      code:
                        pattern: {type: Code, value: '422843007'}
                        index: 21
                      display:
                        pattern: {type: String, value: Chief complaint section}
                        index: 22
                    required: [display, code]
                  text: {mustSupport: true, index: 23}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Condition']
                index: 24
                elements:
                  reference: {index: 25}
                required: [reference]
        PhysicalExamination:
          match:
            code:
              coding: {code: '425044008'}
          schema:
            index: 26
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 27
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 28
                      code:
                        pattern: {type: Code, value: '425044008'}
                        index: 29
                      display:
                        pattern: {type: String, value: Physical exam section}
                        index: 30
                    required: [display, code]
                  text: {mustSupport: true, index: 31}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Observation']
                index: 32
                elements:
                  reference: {index: 33}
                required: [reference]
        Medications:
          match:
            code:
              coding: {code: '721912009'}
          schema:
            index: 66
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 67
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 68
                      code:
                        pattern: {type: Code, value: '721912009'}
                        index: 69
                      display:
                        pattern: {type: String, value: Medication summary document}
                        index: 70
                    required: [display, code]
                  text: {mustSupport: true, index: 71}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/MedicationRequest', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/MedicationStatement']
                index: 72
                elements:
                  reference: {index: 73}
                required: [reference]
        FamilyHistory:
          match:
            code:
              coding: {code: '422432008'}
          schema:
            index: 50
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 51
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 52
                      code:
                        pattern: {type: Code, value: '422432008'}
                        index: 53
                      display:
                        pattern: {type: String, value: Family history section}
                        index: 54
                    required: [display, code]
                  text: {mustSupport: true, index: 55}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/FamilyMemberHistory']
                index: 56
                elements:
                  reference: {index: 57}
                required: [reference]
        Procedure:
          match:
            code:
              coding: {code: '371525003'}
          schema:
            index: 82
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 83
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 84
                      code:
                        pattern: {type: Code, value: '371525003'}
                        index: 85
                      display:
                        pattern: {type: String, value: Clinical procedure report}
                        index: 86
                    required: [display, code]
                  text: {mustSupport: true, index: 87}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Procedure']
                index: 88
                elements:
                  reference: {index: 89}
                required: [reference]
        InvestigationAdvice:
          match:
            code:
              coding: {code: '721963009'}
          schema:
            index: 58
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 59
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 60
                      code:
                        pattern: {type: Code, value: '721963009'}
                        index: 61
                      display:
                        pattern: {type: String, value: Order document}
                        index: 62
                    required: [display, code]
                  text: {mustSupport: true, index: 63}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/ServiceRequest']
                index: 64
                elements:
                  reference: {index: 65}
                required: [reference]
  attester:
    mustSupport: true
    index: 14
    elements:
      party:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/PractitionerRole']
        index: 15
  type:
    short: Kind of composition (SNOMED CT if possible)
    mustSupport: true
    index: 1
    elements:
      coding:
        index: 2
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            index: 3
          code:
            pattern: {type: Code, value: '371530004'}
            index: 4
          display:
            pattern: {type: String, value: Clinical consultation report}
            index: 5
        required: [display, code]
      text: {mustSupport: true, index: 6}
    required: [coding]
  title: {mustSupport: true, index: 13}
  author:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner', 'https://nrces.in/ndhm/fhir/r4/StructureDefinition/PractitionerRole']
    index: 11
    elements:
      reference: {index: 12}
    required: [reference]
  custodian:
    type: Reference
    refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization']
    index: 16
  status: {mustSupport: true, index: 0}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient']
    index: 7
    elements:
      reference: {index: 8}
    required: [reference]
package_version: 2.0.1
class: profile
kind: resource
url: https://nrces.in/ndhm/fhir/r4/StructureDefinition/OPConsultRecord
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 2.0.1
required: [encounter, section, subject]