Profiles & Operations > Structure Definition: Location Profile

Structure Definition: Location

Canonical URL:http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location

Simplifier project page:

Command 'link' could not render: File not found for 'subject=locationprofile:name'

Derived from: Location

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work

Differential View

idΣ0..1id
id0..1string
extensionC0..*Extension
versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileS Σ1..1canonical(StructureDefinition)Fixed Value
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ1..1uriFixed Value
valueS Σ1..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
statusΣ ?!0..1codeBinding
operationalStatusΣ0..1CodingBinding
nameS Σ1..1string
alias0..*string
descriptionΣ0..1string
modeΣ0..1codeBinding
typeΣ0..*CodeableConceptBinding
telecomC0..*ContactPoint
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1codeBinding
textΣ0..1string
lineΣ0..*string
cityΣ0..1string
districtΣ0..1string
stateΣ0..1string
postalCodeS Σ C1..1string
countryΣ0..1string
periodΣ C0..1Period
physicalTypeΣ0..1CodeableConcept
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
longitude1..1decimal
latitude1..1decimal
altitude0..1decimal
managingOrganizationS Σ C0..1Reference(Organization)
partOfC0..1Reference(Location)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
daysOfWeek0..*codeBinding
allDay0..1boolean
openingTime0..1time
closingTime0..1time
availabilityExceptions0..1string
endpointC0..*Reference(Endpoint)

Hybrid View

idΣ0..1id
id0..1string
extensionC0..*Extension
versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileS Σ1..1canonical(StructureDefinition)Fixed Value
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ1..1uriFixed Value
valueS Σ1..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
statusΣ ?!0..1codeBinding
operationalStatusΣ0..1CodingBinding
nameS Σ1..1string
alias0..*string
descriptionΣ0..1string
modeΣ0..1codeBinding
typeΣ0..*CodeableConceptBinding
telecomC0..*ContactPoint
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1codeBinding
textΣ0..1string
lineΣ0..*string
cityΣ0..1string
districtΣ0..1string
stateΣ0..1string
postalCodeS Σ C1..1string
countryΣ0..1string
periodΣ C0..1Period
physicalTypeΣ0..1CodeableConcept
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
longitude1..1decimal
latitude1..1decimal
altitude0..1decimal
managingOrganizationS Σ C0..1Reference(Organization)
partOfC0..1Reference(Location)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
daysOfWeek0..*codeBinding
allDay0..1boolean
openingTime0..1time
closingTime0..1time
availabilityExceptions0..1string
endpointC0..*Reference(Endpoint)

Snapshot View

idΣ0..1id
id0..1string
extensionC0..*Extension
versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileS Σ1..1canonical(StructureDefinition)Fixed Value
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ1..1uriFixed Value
valueS Σ1..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
statusΣ ?!0..1codeBinding
operationalStatusΣ0..1CodingBinding
nameS Σ1..1string
alias0..*string
descriptionΣ0..1string
modeΣ0..1codeBinding
typeΣ0..*CodeableConceptBinding
telecomC0..*ContactPoint
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1codeBinding
textΣ0..1string
lineΣ0..*string
cityΣ0..1string
districtΣ0..1string
stateΣ0..1string
postalCodeS Σ C1..1string
countryΣ0..1string
periodΣ C0..1Period
physicalTypeΣ0..1CodeableConcept
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
longitude1..1decimal
latitude1..1decimal
altitude0..1decimal
managingOrganizationS Σ C0..1Reference(Organization)
partOfC0..1Reference(Location)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
daysOfWeek0..*codeBinding
allDay0..1boolean
openingTime0..1time
closingTime0..1time
availabilityExceptions0..1string
endpointC0..*Reference(Endpoint)

Table View

Location..
Location.meta1..
Location.meta.profile1..1
Location.identifier..1
Location.identifier.system1..
Location.identifier.value1..
Location.name1..
Location.address1..
Location.address.postalCode1..
Location.managingOrganizationReference(Organization)..

JSON View

{
"resourceType": "StructureDefinition",
"id": "profile-location",
"text": {
"status": "extensions",
--- We have skipped the narrative for better readability of the resource ---
},
"url": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location",
"version": "2.0.0",
"name": "LocationProfile",
"title": "MHA Location Profile",
"status": "active",
"date": "2025-05-17T20:17:06.3613088+00:00",
"publisher": "HL7 Canada - FHIR Implementation Work Group",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "https://infocentral.infoway-inforoute.ca/en/collaboration/wg/fhir-implementations"
}
]
}
],
"description": "Proposed constraints and extensions on the Location resource",
{
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "CA"
}
]
}
],
"fhirVersion": "4.0.1",
"mapping": [
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
},
{
"identity": "w5",
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping"
},
{
"identity": "MHA-PDS-Mapping",
"name": "MHA PDS Mapping"
}
],
"kind": "resource",
"abstract": false,
"type": "Location",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
"derivation": "constraint",
"element": [
{
"id": "Location",
"path": "Location",
"mustSupport": true
},
{
"id": "Location.meta",
"path": "Location.meta",
"min": 1,
"mustSupport": true
},
{
"id": "Location.meta.profile",
"path": "Location.meta.profile",
"min": 1,
"max": "1",
"fixedCanonical": "http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location",
"mustSupport": true
},
{
"id": "Location.identifier",
"path": "Location.identifier",
"definition": "Unique code or number identifying the location to its users",
"comment": "The MHA service delivery site for the HSP organization.",
"max": "1",
"mustSupport": true
},
{
"id": "Location.identifier.system",
"path": "Location.identifier.system",
"comment": "Identifier.system is always case sensitive.\n\nPlease refere to the Identifiers page for system URI format.",
"min": 1,
"fixedUri": "http://ehealthontario.ca/fhir/NamingSystem/id-Location-ConnexSite",
"mustSupport": true
},
{
"id": "Location.identifier.value",
"path": "Location.identifier.value",
"definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \nThis is the number assigned by ConnexOntario to each service delivery site. This is a site number assigned by ConnexOntario specific to an HSP, not a unique ID across all HSPs.",
"comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.\n\nThe MHA service delivery site for the HSP organization. SHALL contain the ConnexOntario Site number.",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "MHA-PDS-Mapping",
"map": "HSP Site Number"
}
]
},
{
"id": "Location.name",
"path": "Location.name",
"comment": "If the name of a location changes, consider putting the old name in the alias column so that it can still be located through searches.\n\nThe name of the HSP site providing adult or child and youth mental health, problematic substance use or problem gambling services",
"min": 1,
"mustSupport": true,
"mapping": [
{
"identity": "MHA-PDS-Mapping",
"map": "HSP Site Name"
}
]
},
{
"id": "Location.address",
"path": "Location.address",
"min": 1,
"mustSupport": true
},
{
"id": "Location.address.postalCode",
"path": "Location.address.postalCode",
"definition": "A postal code designating a region defined by the postal service. \n\nThe postal code associated with the location where a particular service is delivered (service delivery site).",
"min": 1,
{
"key": "location-postalcode-inv-1",
"severity": "error",
"human": "If postal code is provided, it cannot contain special characters",
"expression": "$this.hasValue() implies value.matches('^[A-Za-z]\\\\d[A-Za-z]\\\\d[A-Za-z]\\\\d$')"
}
],
"mustSupport": true
},
{
"id": "Location.managingOrganization",
"path": "Location.managingOrganization",
"type": [
{
"code": "Reference",
"http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-organization"
]
}
],
"mustSupport": true
}
]
}
}

Usage

The Location Resource is used to share information pertaining to the location site from where a client is currently enrolled.

Notes

.meta.profile

  • used to declare conformance to this profile
  • populate with a fixed value: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location
.meta.versionId

  • SHALL be populated by the OH FHIR server
  • source systems do not need to populate this element prior to submission
.identifier

  • SHALL contain the ConnexOntario Site number.
.name

  • SHALL contain the name of the site providing adult or child and youth mental health, problematic substance use or problem gambling services.
.managingOrganization

  • SHOULD contain a reference to the Organization resource to which this Location resource applies.