PackagesCanonicalsLogsProblems
    Packages
    ca.on.phsd.r4@alpha-0.1.3
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-response-profile-Location
description: This is the Location profile for Location Search responses from PHSD.
package_name: ca.on.phsd.r4
derivation: constraint
name: LocationResponse
type: Location
elements:
  address:
    mustSupport: true
    index: 49
    extensions:
      address-purpose:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-purpose
        max: 1
        type: Extension
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/phsd-provider-address-purpose'}
        index: 50
      address-confidential: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-confidential', max: 1, type: Extension, index: 51}
      address-intersection: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-addressintersection', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 52}
    elements:
      use:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-address-use'}
        pattern: {type: Code, value: work}
        mustSupport: true
        index: 53
      city: {mustSupport: true, index: 64}
      type:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/address-type'}
        pattern: {type: Code, value: physical}
        mustSupport: true
        index: 54
      state:
        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/province-state-codes'}
        mustSupport: true
        index: 65
      extension:
        type: Extension
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/phsd-provider-address-purpose'}
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-purpose
        index: 50
        slicing:
          slices:
            address-purpose:
              match: {}
              schema:
                type: Extension
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/phsd-provider-address-purpose'}
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-purpose
                index: 50
              max: 1
            address-confidential:
              match: {}
              schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-confidential', index: 51}
              max: 1
            address-intersection:
              match: {}
              schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-addressintersection', index: 52}
              max: 1
      line:
        mustSupport: true
        array: true
        max: 4
        index: 55
        extensions:
          translation:
            url: http://hl7.org/fhir/StructureDefinition/translation
            type: Extension
            isModifier: false
            mustSupport: true
            index: 56
            extensions:
              lang:
                url: null
                mustSupport: true
                index: 58
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 60
              content:
                url: null
                mustSupport: true
                index: 61
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 63
            elements:
              extension:
                array: true
                min: 2
                index: 57
                slicing:
                  slices:
                    lang:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 58
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 60
                    content:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 61
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 63
        elements:
          extension:
            type: Extension
            isModifier: false
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/translation
            index: 56
            slicing:
              slices:
                translation:
                  match: {}
                  schema:
                    type: Extension
                    isModifier: false
                    mustSupport: true
                    url: http://hl7.org/fhir/StructureDefinition/translation
                    index: 56
                    extensions:
                      lang:
                        url: null
                        mustSupport: true
                        index: 58
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 60
                      content:
                        url: null
                        mustSupport: true
                        index: 61
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 63
                    elements:
                      extension:
                        array: true
                        min: 2
                        index: 57
                        slicing:
                          slices:
                            lang:
                              match: {}
                              schema:
                                mustSupport: true
                                index: 58
                                elements:
                                  value:
                                    mustSupport: true
                                    choices: []
                                    index: 60
                            content:
                              match: {}
                              schema:
                                mustSupport: true
                                index: 61
                                elements:
                                  value:
                                    mustSupport: true
                                    choices: []
                                    index: 63
      postalCode: {mustSupport: true, index: 66}
      period:
        mustSupport: true
        index: 68
        elements:
          start: {mustSupport: true, index: 69}
      country:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'}
        mustSupport: true
        index: 67
    required: [type, use]
  meta:
    mustSupport: true
    index: 1
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-phpd-location-response-profile-Location|1.0.0'}
        index: 2
      security:
        mustSupport: true
        index: 3
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality'}
            mustSupport: true
            index: 4
          code: {short: N|R, mustSupport: true, index: 5}
          display: {short: normal|restricted, mustSupport: true, index: 6}
        required: [display, system, code]
    required: [security, profile]
  managingOrganization:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-organization-response-profile-Organization']
    index: 74
    elements:
      reference: {mustSupport: true, index: 75}
      display: {mustSupport: true, index: 76}
  name: {mustSupport: true, index: 32}
  type:
    binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/provider-organization-role-type'}
    mustSupport: true
    index: 37
    elements:
      coding:
        mustSupport: true
        index: 38
        elements:
          system:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/CodeSystem/provider-organization-role-type'}
            mustSupport: true
            index: 39
          code:
            binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-provider-organization-role-type'}
            mustSupport: true
            index: 40
          display: {mustSupport: true, index: 41}
        required: [display, system, code]
  extension:
    type: Extension
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-LHINCode
    index: 7
    slicing:
      slices:
        LHIN-code:
          match: {}
          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-LHINCode', index: 7}
          max: 1
        registration-subClass:
          match: {}
          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-registration-subclass', index: 8}
        organization-type:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-type', index: 9}
        language:
          match: {}
          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language', index: 10}
  alias:
    mustSupport: true
    index: 33
    extensions:
      organization-name-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-name-type', min: 1, max: 1, type: Extension, index: 35}
      language: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language', max: 1, type: Extension, index: 36}
    elements:
      extension:
        index: 34
        slicing:
          slices:
            organization-name-type:
              match: {}
              schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-name-type', index: 35}
              min: 1
              max: 1
            language:
              match: {}
              schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language', index: 36}
              max: 1
    required: [extension]
  status:
    mustSupport: true
    index: 29
    extensions:
      status-reason: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason', max: 1, type: Extension, index: 30}
      statusDate: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-date', max: 1, type: Extension, isModifier: false, index: 31}
    elements:
      extension:
        type: Extension
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason
        index: 30
        slicing:
          slices:
            status-reason:
              match: {}
              schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason', index: 30}
              max: 1
            statusDate:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-date', index: 31}
              max: 1
  id: {short: Point in time logical id of this artifact, mustSupport: true, index: 0}
  identifier:
    mustSupport: true
    index: 11
    elements:
      use: {mustSupport: true, index: 12}
      type:
        mustSupport: false
        index: 13
        elements:
          coding:
            mustSupport: false
            index: 14
            elements:
              system: {mustSupport: false, index: 15}
      system: {mustSupport: true, index: 16}
      value: {mustSupport: true, index: 17}
    required: [value, system, use]
    slicing:
      rules: open
      discriminator:
      - {path: type.coding.code, type: value}
      - {path: use, type: value}
      min: 1
      slices:
        identifier-UPI:
          match:
            type:
              coding: {code: null}
            use: official
          schema:
            mustSupport: true
            index: 18
            elements:
              use:
                pattern: {type: Code, value: official}
                mustSupport: true
                index: 19
              type:
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 20}
              system:
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi'}
                mustSupport: true
                index: 21
              value: {mustSupport: true, index: 22}
            required: [value, system, use]
        oh-connex-id:
          match:
            type:
              coding: {code: null}
            use: null
          schema:
            mustSupport: true
            index: 23
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/NamingSystem/id-connex-location-id'}
                mustSupport: true
                index: 24
              value: {mustSupport: true, index: 25}
            required: [value, system]
        oh-thln-id:
          match:
            type:
              coding: {code: null}
            use: null
          schema:
            mustSupport: true
            index: 26
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/NamingSystem/id-thln-location'}
                mustSupport: true
                index: 27
              value: {mustSupport: true, index: 28}
            required: [value, system]
  position:
    mustSupport: true
    index: 70
    elements:
      longitude: {short: Longitude, mustSupport: true, index: 71}
      latitude: {short: Latitude, mustSupport: true, index: 72}
      altitude: {short: Altitude, mustSupport: true, index: 73}
  telecom:
    mustSupport: true
    index: 42
    extensions:
      contactPurpose: {url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-contact-purpose', type: Extension, isModifier: false, index: 43}
    elements:
      extension:
        type: Extension
        isModifier: false
        url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-contact-purpose
        index: 43
        slicing:
          slices:
            contactPurpose:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-contact-purpose', index: 43}
      system:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-contact-point-system-organization'}
        mustSupport: true
        index: 44
      value: {mustSupport: true, index: 45}
      use:
        pattern: {type: Code, value: work}
        mustSupport: true
        index: 46
      period:
        mustSupport: true
        index: 47
        elements:
          start: {mustSupport: true, index: 48}
    required: [value, system]
package_version: alpha-0.1.3
extensions:
  LHIN-code: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-LHINCode', max: 1, type: Extension, index: 7}
  registration-subClass: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-registration-subclass', type: Extension, index: 8}
  organization-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-type', type: Extension, mustSupport: true, index: 9}
  language: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language', type: Extension, index: 10}
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-response-profile-Location
base: http://hl7.org/fhir/StructureDefinition/Location
version: 1.0.0
required: [id, name, identifier, meta]