PackagesCanonicalsLogsProblems
    Packages
    synapxe.hsar.hsg@4.3.0-v3
    http://ihis.sg/StructureDefinition/Composition-pophealth
description: Base profile for get-care-report and put-care-report API
package_name: synapxe.hsar.hsg
derivation: constraint
name: profile-Composition-put-care-report
type: Composition
elements:
  category: {index: 24}
  date: {short: n/a, index: 33}
  meta: {index: 1}
  encounter: {index: 32}
  section:
    short: n/a
    index: 69
    elements:
      orderedBy: {index: 88}
      section: {index: 96}
      mode: {index: 87}
      title: {index: 73}
      emptyReason: {index: 95}
      author: {index: 85}
      extension: {index: 71}
      id: {index: 70}
      code:
        elements:
          id: {index: 74}
          extension: {index: 75}
          coding:
            short: n/a
            index: 76
            elements:
              id: {index: 77}
              extension: {index: 78}
              system:
                short: n/a
                pattern: {type: Uri, value: 'http://ihis.sg/ValueSet/hsg-carereport-section'}
                index: 79
              version: {index: 80}
              code: {short: n/a, index: 81}
              display: {short: n/a, index: 82}
              userSelected: {index: 83}
            extensions: {}
            required: [system, code]
          text: {index: 84}
        extensions: {}
        required: [coding]
      focus: {index: 86}
      entry:
        elements:
          id: {index: 89}
          extension: {index: 90}
          reference:
            short: n/a
            constraint:
              max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
            index: 91
          type: {index: 92}
          identifier: {index: 93}
          display: {index: 94}
        extensions: {}
        required: [reference]
      modifierExtension: {index: 72}
    extensions: {}
  implicitRules: {index: 2}
  attester: {index: 51}
  type:
    short: n/a
    binding: {strength: required, valueSet: 'http://ihis.sg/ValueSet/hsg-document-type'}
    index: 12
    elements:
      id: {index: 13}
      extension: {index: 14}
      coding:
        short: n/a
        index: 15
        elements:
          id: {index: 16}
          extension: {index: 17}
          system: {short: n/a, index: 18}
          version: {index: 19}
          code:
            short: n/a
            pattern: {type: Code, value: care-report}
            index: 20
          display: {short: n/a, index: 21}
          userSelected: {index: 22}
        extensions: {}
        required: [system, code]
      text: {index: 23}
    extensions: {}
    required: [coding]
  title:
    short: n/a
    constraint:
      max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
    index: 49
  author:
    short: n/a
    index: 34
    elements:
      id: {index: 35}
      extension: {index: 36}
      reference: {index: 37}
      type: {index: 38}
      identifier:
        short: n/a
        index: 39
        elements:
          id: {index: 40}
          extension: {index: 41}
          use: {index: 42}
          type: {index: 43}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/mcr'}
            index: 44
          value:
            short: n/a
            constraint:
              max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
            index: 45
          period: {index: 46}
          assigner: {index: 47}
        extensions: {}
        required: [value, system]
      display:
        short: n/a
        constraint:
          max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
        index: 48
    extensions: {}
    required: [identifier]
  extension:
    index: 7
    slicing:
      slices:
        extensionCompositionCareReportYear:
          match: {}
          schema: {type: Extension, url: 'http://ihis.sg/extension/care-report-year', index: 8}
          min: 1
          max: 1
  contained:
    short: n/a
    index: 5
    slicing:
      rules: closed
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        Patient:
          match: {}
          schema: {type: Patient, _required: true, index: 6}
          min: 1
          max: 1
  event: {index: 68}
  custodian:
    short: n/a
    index: 52
    elements:
      id: {index: 53}
      extension: {index: 54}
      reference: {index: 55}
      type:
        short: n/a
        pattern: {type: Uri, value: Organization}
        index: 56
      identifier:
        short: n/a
        index: 57
        elements:
          id: {index: 58}
          extension: {index: 59}
          use: {index: 60}
          type: {index: 61}
          system:
            short: n/a
            pattern: {type: Uri, value: 'http://ihis.sg/identifier/hci-code'}
            index: 62
          value: {short: n/a, index: 63}
          period: {index: 64}
          assigner: {index: 65}
        extensions: {}
        required: [value, system]
      display: {index: 66}
    extensions: {}
    required: [identifier, type]
  status:
    short: n/a
    pattern: {type: Code, value: final}
    isModifierReason: n/a
    index: 11
  language: {index: 3}
  id: {index: 0}
  identifier: {index: 10}
  relatesTo: {index: 67}
  subject:
    short: n/a
    refers: ['http://ihis.sg/StructureDefinition/CareReport-Patient']
    type: Reference
    index: 25
    elements:
      id: {index: 26}
      extension: {index: 27}
      reference:
        short: n/a
        constraint:
          max-string-length-255: {human: String length must not exceed 255 characters, severity: error, expression: $this.toString().length() <= 255}
        index: 28
      type: {index: 29}
      identifier: {index: 30}
      display: {index: 31}
    extensions: {}
    required: [reference]
  modifierExtension: {index: 9}
  confidentiality: {index: 50}
  text: {index: 4}
package_version: 4.3.0-v3
extensions:
  extensionCompositionCareReportYear: {url: 'http://ihis.sg/extension/care-report-year', min: 1, max: 1, type: Extension, index: 8}
class: profile
kind: resource
url: http://ihis.sg/StructureDefinition/Composition-pophealth
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 4.3.0-v3
required: [extension, section, subject, custodian, contained]