QI-Core Implementation Guide
4.1.0 - release

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

## Resource Profile: QICoreSubstance - Mappings

Mappings for the qicore-substance resource profile.

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

QICoreSubstance
Substance | Entity. Role, or Act, Material
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
status | .statusCode
category | .code
code | .code
description | .player.desc
instance | .player.determinerCode
id | n/a
extension | n/a
modifierExtension | N/A
identifier | .id
expiry | .expiryTime
quantity | .player.quantity
ingredient | .player.scopesRole[classCode=INGR]
id | n/a
extension | n/a
modifierExtension | N/A
quantity | .quantity
substance[x] | .player

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

QICoreSubstance
Substance | fhir:Substance rdfs:subClassOf rim:Entity, [ a owl:Restriction; owl:onProperty rim:Act.classCode; owl:allValuesFrom cs:EntityClass\#MAT ].
code | fhir:Substance.code rdfs:subPropertyOf rim:Entity.code

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

QICoreSubstance
Substance |
identifier | FiveWs.identifier
status | FiveWs.status
category | FiveWs.class
code | FiveWs.what[x]