PackagesCanonicalsLogsProblems
    Packages
    rs/ndhm.in@6.0.0
    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: rs/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'}
                        type: uri
                        index: 44
                      code:
                        pattern: {type: code, value: '371529009'}
                        type: code
                        index: 45
                      display:
                        pattern: {type: string, value: History and physical report}
                        type: string
                        index: 46
                    required: [code, display, system]
                  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: 106
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 107
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 108
                      code:
                        pattern: {type: code, value: '371530004'}
                        type: code
                        index: 109
                      display:
                        pattern: {type: string, value: Clinical consultation report}
                        type: string
                        index: 110
                    required: [code, display, system]
                  text: {mustSupport: true, index: 111}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentReference']
                index: 112
                elements:
                  reference: {index: 113}
                required: [reference]
        OtherObservations:
          match:
            code:
              coding: {code: '404684003'}
          schema:
            index: 98
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 99
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 100
                      code:
                        pattern: {type: code, value: '404684003'}
                        type: code
                        index: 101
                      display:
                        pattern: {type: string, value: Clinical finding}
                        type: string
                        index: 102
                    required: [code, display, system]
                  text: {mustSupport: true, index: 103}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/Observation']
                index: 104
                elements:
                  reference: {index: 105}
                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'}
                        type: uri
                        index: 36
                      code:
                        pattern: {type: code, value: '722446000'}
                        type: code
                        index: 37
                      display:
                        pattern: {type: string, value: Allergy record}
                        type: string
                        index: 38
                    required: [code, display, system]
                  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: '390906007'}
          schema:
            index: 74
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 75
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 76
                      code:
                        pattern: {type: code, value: '390906007'}
                        type: code
                        index: 77
                      display:
                        pattern: {type: string, value: Follow-up encounter}
                        type: string
                        index: 78
                    required: [code, display, system]
                  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'}
                        type: uri
                        index: 20
                      code:
                        pattern: {type: code, value: '422843007'}
                        type: code
                        index: 21
                      display:
                        pattern: {type: string, value: Chief complaint section}
                        type: string
                        index: 22
                    required: [code, display, system]
                  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'}
                        type: uri
                        index: 28
                      code:
                        pattern: {type: code, value: '425044008'}
                        type: code
                        index: 29
                      display:
                        pattern: {type: string, value: Physical exam section}
                        type: string
                        index: 30
                    required: [code, display, system]
                  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'}
                        type: uri
                        index: 68
                      code:
                        pattern: {type: code, value: '721912009'}
                        type: code
                        index: 69
                      display:
                        pattern: {type: string, value: Medication summary document}
                        type: string
                        index: 70
                    required: [code, display, system]
                  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'}
                        type: uri
                        index: 52
                      code:
                        pattern: {type: code, value: '422432008'}
                        type: code
                        index: 53
                      display:
                        pattern: {type: string, value: Family history section}
                        type: string
                        index: 54
                    required: [code, display, system]
                  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'}
                        type: uri
                        index: 84
                      code:
                        pattern: {type: code, value: '371525003'}
                        type: code
                        index: 85
                      display:
                        pattern: {type: string, value: Clinical procedure report}
                        type: string
                        index: 86
                    required: [code, display, system]
                  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'}
                        type: uri
                        index: 60
                      code:
                        pattern: {type: code, value: '721963009'}
                        type: code
                        index: 61
                      display:
                        pattern: {type: string, value: Order document}
                        type: string
                        index: 62
                    required: [code, display, system]
                  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]
        Referral:
          match:
            code:
              coding: {code: '306206005'}
          schema:
            index: 90
            elements:
              code:
                elements:
                  coding:
                    mustSupport: true
                    index: 91
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 92
                      code:
                        pattern: {type: code, value: '306206005'}
                        type: code
                        index: 93
                      display:
                        pattern: {type: string, value: Referral to service}
                        type: string
                        index: 94
                    required: [code, display, system]
                  text: {mustSupport: true, index: 95}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://nrces.in/ndhm/fhir/r4/StructureDefinition/ServiceRequest']
                index: 96
                elements:
                  reference: {index: 97}
                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'}
            type: uri
            index: 3
          code:
            pattern: {type: code, value: '371530004'}
            type: code
            index: 4
          display:
            pattern: {type: string, value: Clinical consultation report}
            type: string
            index: 5
        required: [code, display, system]
      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: 6.0.0
class: profile
kind: resource
url: https://nrces.in/ndhm/fhir/r4/StructureDefinition/OPConsultRecord
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 6.0.0
required: [encounter, section, subject]