QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreLocation - Mappings

Mappings for the qicore-location resource profile.

### Mappings for ServD (http://www.omg.org/spec/ServD/1.0/)

QICoreLocation
Location | Organization
identifier (identifier) |
system | ./IdentifierType
value | ./Value
period | ./StartDate and ./EndDate
assigner | ./IdentifierIssuingAuthority
name | ./PrimaryAddress and ./OtherAddresses
address | n/a
use | ./AddressPurpose
line | ./StreetAddress (newline delimitted)
city | ./Jurisdiction
state | ./Region, ./Sites
postalCode | ./PostalIdentificationCode
country | ./Country
period | ./StartDate and ./EndDate

### Mappings for RIM Mapping (http://hl7.org/v3)

QICoreLocation
Location | Entity. Role, or Act, .Role[classCode=SDLC]
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier (identifier) | .id
id | n/a
extension | n/a
use | Role.code or implied by context
type | Role.code or implied by context
system | II.root or Role.id.root
value | II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
period | Role.effectiveTime or implied by context
assigner | II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
status | .statusCode
operationalStatus | n/a
name | .name
alias | .name
description | .playingEntity[classCode=PLC determinerCode=INSTANCE].desc
mode | .playingEntity[classCode=PLC].determinerCode
type | .code
telecom | .telecom
address | .addr
id | n/a
extension | n/a
use | unique(./use)
type | unique(./use)
text | ./formatted
line | AD.part[parttype = AL]
city | AD.part[parttype = CTY]
district | AD.part[parttype = CNT | CPA]
state | AD.part[parttype = STA]
postalCode | AD.part[parttype = ZIP]
country | AD.part[parttype = CNT]
period | ./usablePeriod[type="IVL<TS>"]
physicalType | .playingEntity [classCode=PLC].code
position | .playingEntity [classCode=PLC determinerCode=INSTANCE].positionText
id | n/a
extension | n/a
modifierExtension | N/A
longitude | (RIM Opted not to map the sub-elements of GPS location, is now an OBS)
latitude | (RIM Opted not to map the sub-elements of GPS location, is now an OBS)
altitude | (RIM Opted not to map the sub-elements of GPS location, is now an OBS)
managingOrganization | .scopingEntity[classCode=ORG determinerKind=INSTANCE]
partOf | .inboundLink[typeCode=PART].source[classCode=SDLC]
hoursOfOperation | .effectiveTime
id | n/a
extension | n/a
modifierExtension | N/A
daysOfWeek | .effectiveTime
allDay | .effectiveTime
openingTime | .effectiveTime
closingTime | .effectiveTime
availabilityExceptions | n/a
endpoint | n/a

### Mappings for FiveWs Pattern Mapping (http://hl7.org/fhir/fivews)

QICoreLocation
Location |
identifier (identifier) | FiveWs.identifier
status | FiveWs.status
operationalStatus | FiveWs.status
mode | FiveWs.class
type | FiveWs.class
physicalType | FiveWs.class