QI-Core Implementation Guide
4.1.0 - release

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

## Resource Profile: QICoreOrganization - Mappings

Mappings for the qicore-organization resource profile.

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

QICoreOrganization
Organization | Organization
identifier | ./Identifiers, n/a
identifier (NPI) | ./Identifiers, n/a
identifier (CLIA) | ./Identifiers, n/a
identifier (ccn) | ./Identifiers, n/a
system | ./IdentifierType
value | ./Value
period | ./StartDate and ./EndDate
assigner | ./IdentifierIssuingAuthority
identifier (ein) | ./Identifiers, n/a
system | ./IdentifierType
value | ./Value
period | ./StartDate and ./EndDate
assigner | ./IdentifierIssuingAuthority
active | ./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date.
type | n/a
name | .PreferredName/Name, ./PrimaryAddress and ./OtherAddresses
telecom | ./ContactPoints
address | ./PrimaryAddress and ./OtherAddresses, n/a
use | ./AddressPurpose
line | ./StreetAddress (newline delimitted)
city | ./Jurisdiction
state | ./Region, ./Sites
postalCode | ./PostalIdentificationCode
country | ./Country
period | ./StartDate and ./EndDate
partOf | n/a

### Mappings for HL7 v2 Mapping (http://hl7.org/v2)

QICoreOrganization
Organization | (also see master files messages)
identifier | XON.10 / XON.3
identifier (NPI) | XON.10 / XON.3
identifier (CLIA) | XON.10 / XON.3
identifier (ccn) | XON.10 / XON.3
use | N/A
type | CX.5
system | CX.4 / EI-2-4
value | CX.1 / EI.1
period | CX.7 + CX.8
assigner | CX.4 / (CX.4,CX.9,CX.10)
identifier (ein) | XON.10 / XON.3
use | N/A
type | CX.5
system | CX.4 / EI-2-4
value | CX.1 / EI.1
period | CX.7 + CX.8
assigner | CX.4 / (CX.4,CX.9,CX.10)
active | No equivalent in HL7 v2
type | No equivalent in v2
name | XON.1
telecom | ORC-22?
address | ORC-23?
use | XAD.7
type | XAD.18
text | XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6
line | XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)
city | XAD.3
district | XAD.9
state | XAD.4
postalCode | XAD.5
country | XAD.6
period | XAD.12 / XAD.13 + XAD.14
partOf | No equivalent in HL7 v2
contact |
name | PID-5, PID-9
telecom | PID-13, PID-14
address | PID-11

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

QICoreOrganization
Organization | Entity. Role, or Act, Organization(classCode=ORG, determinerCode=INST)
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .scopes[Role](classCode=IDENT)
identifier (NPI) | .scopes[Role](classCode=IDENT)
identifier (CLIA) | .scopes[Role](classCode=IDENT)
identifier (ccn) | .scopes[Role](classCode=IDENT)
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
identifier (ein) | .scopes[Role](classCode=IDENT)
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
active | .status
type | .code
name | .name
alias | .name
telecom | .telecom
address | .address
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>"]
partOf | .playedBy[classCode=Part].scoper
contact | .contactParty
id | n/a
extension | n/a
modifierExtension | N/A
purpose | ./type
name | ./name
telecom | ./telecom
address | ./addr
endpoint | n/a

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

QICoreOrganization
Organization |
identifier | FiveWs.identifier
identifier (NPI) | FiveWs.identifier
identifier (CLIA) | FiveWs.identifier
identifier (ccn) | FiveWs.identifier
identifier (ein) | FiveWs.identifier
active | FiveWs.status
type | FiveWs.class