PackagesCanonicalsLogsProblems
    Packages
    ca.on.health.idms@1.0.9
    https://health.gov.on.ca/idms/fhir/StructureDefinition/IDMS-DocumentReference-Letter-Template
description: These are letter templates,  they need to be searchable by type, category, product type, submission type and review path
package_name: ca.on.health.idms
derivation: constraint
name: IDMSDocumentLetterTemplate
type: DocumentReference
elements:
  practiceSetting: {index: 72}
  description: {index: 79}
  category:
    short: Classifications of the Letter Template
    array: true
    max: 4
    index: 26
    slicing:
      rules: open
      discriminator:
      - {path: coding.version, type: value}
      min: null
      max: 4
      slices:
        RequestCategory:
          match:
            coding: {version: null}
          schema:
            index: 27
            extensions: {}
            elements:
              extension: {index: 28}
              coding:
                index: 29
                extensions: {}
                elements:
                  extension: {index: 30}
                  system:
                    pattern: {type: uri, value: 'https://health.gov.on.ca/idms/fhir/CodeSystem/Internal-Request-Category-Types'}
                    type: uri
                    index: 31
                  version: {index: 32}
                  code:
                    binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/Request-Category'}
                    index: 33
                  display: {index: 34}
                  userSelected: {index: 35}
                required: [code, display, system]
              text:
                short: Distinquishes this as the ProductType Code,  has a fixed value of 'ProductType'
                pattern: {type: string, value: RequestCategory}
                type: string
                index: 36
            required: [coding]
        ProductType:
          match:
            coding: {version: ProductType}
          schema:
            index: 37
            extensions: {}
            elements:
              extension: {index: 38}
              coding:
                index: 39
                extensions: {}
                elements:
                  extension: {index: 40}
                  system:
                    short: IDMS Product Submission Code System
                    pattern: {type: uri, value: 'https://health.gov.on.ca/idms/fhir/CodeSystem/Internal-Product-Types'}
                    type: uri
                    index: 41
                  version:
                    short: Type of Code
                    pattern: {type: string, value: ProductType}
                    type: string
                    index: 42
                  code:
                    short: This is the Product Type Code
                    binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/IDMS-Product-Types'}
                    index: 43
                  display: {short: Display Value for the Product Type code, index: 44}
                  userSelected: {index: 45}
                required: [code, display, system]
              text:
                short: Distinquishes this as the ProductType Code,  has a fixed value of 'ProductType'
                pattern: {type: string, value: ProductType}
                type: string
                index: 46
            required: [coding]
        SubmissionType:
          match:
            coding: {version: SubmissionType}
          schema:
            index: 47
            extensions: {}
            elements:
              extension: {index: 48}
              coding:
                index: 49
                extensions: {}
                elements:
                  extension: {index: 50}
                  system:
                    pattern: {type: uri, value: 'https://health.gov.on.ca/idms/fhir/CodeSystem/Internal-Submission-Types'}
                    type: uri
                    index: 51
                  version:
                    short: Type of Code
                    pattern: {type: string, value: SubmissionType}
                    type: string
                    index: 52
                  code:
                    short: This is the Submission Code
                    binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/IDMS-Submission-Types'}
                    index: 53
                  display: {short: This is the display Value for the Submission Code, index: 54}
                  userSelected: {index: 55}
                required: [code, display, system]
              text:
                short: Distinquishes this as the SubmissionType Code,  has a fixed value of 'SubmissionType'
                pattern: {type: string, value: SubmissionType}
                type: string
                index: 56
            required: [coding]
        GenericClassification:
          match:
            coding: {version: null}
          schema:
            index: 57
            extensions: {}
            elements:
              extension: {index: 58}
              coding:
                index: 59
                extensions: {}
                elements:
                  extension: {index: 60}
                  system:
                    pattern: {type: uri, value: 'https://health.gov.on.ca/idms/fhir/CodeSystem/Generic-Classification'}
                    type: uri
                    index: 61
                  version: {short: Type of Code, index: 62}
                  code:
                    binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/IDMS-New-Generic-Classification'}
                    index: 63
                  display: {short: This is the display Value for the Request Type, index: 64}
                  userSelected: {index: 65}
                required: [code, display, system]
              text: {index: 66}
            required: [coding]
  date: {index: 74}
  docStatus: {index: 14}
  content:
    index: 81
    extensions: {}
    elements:
      extension: {index: 82}
      modifierExtension: {index: 83}
      attachment: {index: 84}
      profile:
        index: 85
        extensions: {}
        elements:
          extension: {index: 86}
          modifierExtension: {index: 87}
  attester: {index: 76}
  type:
    index: 16
    extensions: {}
    elements:
      extension: {index: 17}
      coding:
        index: 18
        extensions: {}
        elements:
          extension: {index: 19}
          system:
            pattern: {type: uri, value: 'https://health.gov.on.ca/idms/fhir/CodeSystem/IDMS-Internal'}
            type: uri
            index: 20
          version: {index: 21}
          code:
            binding: {strength: required, valueSet: 'https://health.gov.on.ca/idms/fhir/ValueSet/IDMS-DocumentReference-Letter-Types'}
            index: 22
          display: {index: 23}
          userSelected: {index: 24}
        required: [code, system]
      text: {index: 25}
    required: [coding]
  modality: {index: 15}
  facilityType: {index: 71}
  author: {index: 75}
  event: {index: 69}
  custodian: {index: 77}
  status: {index: 13}
  identifier:
    short: Template Identifier
    index: 0
    extensions: {}
    elements:
      extension: {index: 1}
      use: {index: 2}
      type:
        index: 3
        elements:
          coding:
            elements:
              system: {index: 4}
              code: {index: 5}
              display: {index: 6}
            required: [code, display, system]
      system:
        short: Primary File Number System
        pattern: {type: uri, value: 'urn:idms:letter:template'}
        type: uri
        index: 7
      value: {short: Primary File Number, index: 8}
      period: {index: 9}
      assigner: {index: 10}
    required: [system, value]
  bodySite: {index: 70}
  relatesTo: {index: 78}
  context: {index: 68}
  period: {index: 73}
  basedOn: {index: 12}
  version: {index: 11}
  securityLabel: {index: 80}
  subject: {index: 67}
package_version: 1.0.9
class: profile
kind: resource
url: https://health.gov.on.ca/idms/fhir/StructureDefinition/IDMS-DocumentReference-Letter-Template
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.0.0
required: [identifier, type]