PackagesCanonicalsLogsProblems
    Packages
    ca.on.phsd.r4-alpha@1.0.0-BallotDraft
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-submission-profile-Location
description: Defines the Location resource in a Location Submission during bulk import.
package_name: ca.on.phsd.r4-alpha
derivation: constraint
name: LocationSubmission
type: Location
elements:
  address:
    mustSupport: true
    index: 51
    extensions:
      address-purpose:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-purpose
        type: Extension
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/phsd-provider-address-purpose'}
        index: 52
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-purpose'}
            index: 53
      address-confidential:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-confidential
        type: Extension
        index: 54
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-confidential'}
            index: 55
      address-intersection:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-addressintersection
        type: Extension
        isModifier: false
        mustSupport: true
        index: 56
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-addressintersection'}
            index: 57
    elements:
      use:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-address-use'}
        pattern: {type: Code, value: work}
        mustSupport: true
        index: 58
      city: {mustSupport: true, index: 69}
      type:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/address-type'}
        pattern: {type: Code, value: physical}
        mustSupport: true
        index: 59
      state:
        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/province-state-codes'}
        mustSupport: true
        index: 70
      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: 52
        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: 52
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-purpose'}
                    index: 53
            address-confidential:
              match: {}
              schema:
                type: Extension
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-confidential
                index: 54
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-address-confidential'}
                    index: 55
            address-intersection:
              match: {}
              schema:
                type: Extension
                isModifier: false
                mustSupport: true
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-addressintersection
                index: 56
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-addressintersection'}
                    index: 57
      line:
        mustSupport: true
        array: true
        min: 1
        index: 60
        extensions:
          translation:
            url: http://hl7.org/fhir/StructureDefinition/translation
            type: Extension
            isModifier: false
            mustSupport: true
            index: 61
            extensions:
              lang:
                url: null
                mustSupport: true
                index: 63
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 65
              content:
                url: null
                mustSupport: true
                index: 66
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 68
            elements:
              extension:
                array: true
                min: 2
                index: 62
                slicing:
                  slices:
                    lang:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 63
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 65
                    content:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 66
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 68
        elements:
          extension:
            type: Extension
            isModifier: false
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/translation
            index: 61
            slicing:
              slices:
                translation:
                  match: {}
                  schema:
                    type: Extension
                    isModifier: false
                    mustSupport: true
                    url: http://hl7.org/fhir/StructureDefinition/translation
                    index: 61
                    extensions:
                      lang:
                        url: null
                        mustSupport: true
                        index: 63
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 65
                      content:
                        url: null
                        mustSupport: true
                        index: 66
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 68
                    elements:
                      extension:
                        array: true
                        min: 2
                        index: 62
                        slicing:
                          slices:
                            lang:
                              match: {}
                              schema:
                                mustSupport: true
                                index: 63
                                elements:
                                  value:
                                    mustSupport: true
                                    choices: []
                                    index: 65
                            content:
                              match: {}
                              schema:
                                mustSupport: true
                                index: 66
                                elements:
                                  value:
                                    mustSupport: true
                                    choices: []
                                    index: 68
      postalCode: {mustSupport: true, index: 71}
      period:
        mustSupport: true
        index: 73
        elements:
          start: {mustSupport: true, index: 74}
      country:
        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/country-code'}
        mustSupport: true
        index: 72
    required: [city, postalCode, line, type, state, use]
  meta:
    mustSupport: true
    index: 1
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-submission-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: 79
    elements:
      reference: {mustSupport: true, index: 80}
      display: {mustSupport: true, index: 81}
  name: {mustSupport: true, index: 38}
  type:
    binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/provider-organization-role-type'}
    mustSupport: true
    index: 45
    elements:
      coding:
        mustSupport: true
        index: 46
        elements:
          system:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/CodeSystem/provider-organization-role-type'}
            mustSupport: true
            index: 47
          code:
            binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-provider-organization-role-type'}
            mustSupport: true
            index: 48
          display: {mustSupport: true, index: 49}
        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
            elements:
              url:
                pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-LHINCode'}
                index: 8
        registration-subClass:
          match: {}
          schema:
            type: Extension
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-registration-subclass
            index: 9
            elements:
              url:
                pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-registration-subclass'}
                index: 10
        organization-type:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-type
            index: 11
            elements:
              url:
                pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-type'}
                index: 12
        language:
          match: {}
          schema:
            type: Extension
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language
            index: 13
            elements:
              url:
                pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language'}
                index: 14
  alias:
    mustSupport: true
    index: 39
    extensions:
      organization-name-type:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-name-type
        type: Extension
        index: 41
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-name-type'}
            index: 42
      language:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language
        type: Extension
        index: 43
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language'}
            index: 44
    elements:
      extension:
        index: 40
        slicing:
          slices:
            organization-name-type:
              match: {}
              schema:
                type: Extension
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-name-type
                index: 41
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-name-type'}
                    index: 42
            language:
              match: {}
              schema:
                type: Extension
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language
                index: 43
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language'}
                    index: 44
    required: [extension]
  status:
    mustSupport: true
    index: 33
    extensions:
      status-date:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-Status-Date
        type: Extension
        mustSupport: true
        index: 34
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-Status-Date'}
            index: 35
      status-reason:
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason
        type: Extension
        mustSupport: true
        index: 36
        elements:
          url:
            pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason'}
            index: 37
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-Status-Date
        index: 34
        slicing:
          slices:
            status-date:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-Status-Date
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-Status-Date'}
                    index: 35
            status-reason:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason
                index: 36
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-status-reason'}
                    index: 37
  id: {mustSupport: false, index: 0}
  identifier:
    mustSupport: true
    index: 15
    elements:
      use: {mustSupport: true, index: 16}
      type:
        mustSupport: false
        index: 17
        elements:
          coding:
            mustSupport: false
            index: 18
            elements:
              system: {mustSupport: false, index: 19}
      system: {mustSupport: true, index: 20}
      value: {mustSupport: true, index: 21}
    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: 22
            elements:
              use:
                pattern: {type: Code, value: official}
                mustSupport: true
                index: 23
              type:
                elements:
                  coding:
                    elements:
                      system: {mustSupport: false, index: 24}
              system:
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi'}
                mustSupport: true
                index: 25
              value: {mustSupport: true, index: 26}
            required: [value, system, use]
        oh-connex-id:
          match:
            type:
              coding: {code: null}
            use: null
          schema:
            mustSupport: true
            index: 27
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/NamingSystem/id-connex-location-id'}
                mustSupport: true
                index: 28
              value: {mustSupport: true, index: 29}
            required: [value, system]
        oh-thln-id:
          match:
            type:
              coding: {code: null}
            use: null
          schema:
            mustSupport: true
            index: 30
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/NamingSystem/id-thln-location'}
                mustSupport: true
                index: 31
              value: {mustSupport: true, index: 32}
            required: [value, system]
  position:
    mustSupport: true
    index: 75
    elements:
      longitude: {short: Longitude, mustSupport: true, index: 76}
      latitude: {short: Latitude, mustSupport: true, index: 77}
      altitude: {short: Altitude, mustSupport: true, index: 78}
  telecom: {type: ContactPoint, mustSupport: true, index: 50}
package_version: 1.0.0-BallotDraft
extensions:
  LHIN-code:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-LHINCode
    type: Extension
    index: 7
    elements:
      url:
        pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-LHINCode'}
        index: 8
  registration-subClass:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-registration-subclass
    type: Extension
    index: 9
    elements:
      url:
        pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-registration-subclass'}
        index: 10
  organization-type:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-type
    type: Extension
    mustSupport: true
    index: 11
    elements:
      url:
        pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-organization-type'}
        index: 12
  language:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language
    type: Extension
    index: 13
    elements:
      url:
        pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-ext-language'}
        index: 14
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-phsd-location-submission-profile-Location
base: http://hl7.org/fhir/StructureDefinition/Location
version: 1.0.0
required: [position, name, identifier, meta]