Location
FHIR V4.0 - Clinical Data Model Mapping
Here’s how the fields defined by FHIR for Location map to the fields in the Salesforce.
| Location Resource | Salesforce Field | Type | Salesforce Cardinality | Notes |
|---|---|---|---|---|
| identifier | Identifier | Object | 0.M | The identifier information for a facility is represented as Identifier records that reference the facility record using their Identifier.ParentRecordId field. |
| status | Account.IsActive | Boolean | 0.1 | While FHIR defines location.status as a code, the salesforce implementation is a boolean field in the referenced account record. |
| operationalStatus | N/A | N/A | N/A | Not supported |
| name | HealthcareFacility.Name | String | 0.1 | N/A |
| alias | N/A | N/A | N/A | Not supported |
| description | Location.Description | String | 0.1 | N/A |
| mode | N/A | N/A | N/A | Not supported |
| type | HealthcareFacility.FacilityTypeId | Lookup: CodeSetBundle | 0.1 | While FHIR defines location.type as a zero-to-many resource, Salesforce implements HealthcareFacility.FacilityTypeId as a zero-to-one field. |
| telecom | ContactPointPhone | Object | 0.M | The telecom information of the facility is stored as ContactPointPhone records that reference the account referenced by the facility record. |
| address | ContactPointAddress | Object | 0.M | The address information of the facility is stored as ContactPointAddress records that reference the account referenced by the facility record. |
| physicalType | HealthcareFacility.LocationType | Picklist | 0.1 | While FHIR defines location.physicalType as a code set bundle, Salesforce implements HealthcareFacility.LocationType as a picklist. |
| position | Location.Location | Geolocation | 0.1 |
The location.position FHIR resource is mapped to the Location.Location salesforce field. This location (Salesforce object) record is referenced by the healthcare facility record using its HealthcareFacility.LocationId lookup field. position.altitude is not supported in Location.Location. |
| managingOrganization | AccountAccountRelation__c | Junction Object | 0.1 | The junction object that connects the facility account with the parent organization’s business account. |
| partOf | HealthcareFacility.ParentFacilityId | Lookup: HealthcareFacility | 0.1 | N/A |
| hoursOfOperation.daysOfWeek | TimeSlot.DayOfWeek | Picklist | 0.1 |
While FHIR defines location.hoursOfOperation.daysOfWeek as a code set bundle, Salesforce implementation is a picklist. While the TimeSlot.DayOfWeek field is a zero-to-one field, multiple time slot records can reference the same operating hours record, thereby supporting a zero-to-many reference for location.hoursOfOperation.daysOfWeek in the Salesforce implementation. The time slot record references the operating hours record using its TimeSlot.OperatingHoursId master-detail reference field. This operating hours record is referenced by the facility’s account record using its Account.OperatingHoursId lookup field. And finally, this account record is referenced by the facility record using its HealthcareFacility.AccountId master-detail reference field. |
| hoursOfOperation.allDay | N/A | N/A | N/A | Not supported |
| hoursOfOperation.openingTime | TimeSlot.StartTime | Time | 0.1 |
The time slot record references the operating hours record using its TimeSlot.OperatingHoursId master-detail reference field. This operating hours record is referenced by the facility’s account record using its Account.OperatingHoursId lookup field. And finally, this account record is referenced by the facility record using its HealthcareFacility.AccountId master-detail reference field. |
| hoursOfOperation.closingTime | TimeSlot.EndTime | Time | 0.1 |
The time slot record references the operating hours record using its TimeSlot.OperatingHoursId master-detail reference field. This operating hours record is referenced by the facility’s account record using its Account.OperatingHoursId lookup field. And finally, this account record is referenced by the facility record using its HealthcareFacility.AccountId master-detail reference field. |
| availabilityExceptions | HealthcareFacility.AvailabilityExceptions | String | 0.1 | N/A |
| endPoint | N/A | N/A | N/A | Not supported |
Sample Record Diagram
Here's a diagram that shows an example of how this resource is represented in Salesforce.