|
DocumentReference
|
|
masterIdentifier
identifier
|
TXA-12
|
identifier
basedOn
|
TXA-16?
|
|
status
|
TXA-19
|
|
docStatus
|
TXA-17
|
|
type
|
TXA-2
|
|
category
|
|
|
subject
|
PID-3
(No
standard
way
to
define
a
Practitioner
or
Group
subject
in
HL7
v2
MDM
message)
|
date
context
|
|
author
event
|
TXA-9
(No
standard
way
to
indicate
a
Device
in
HL7
v2
MDM
message)
|
authenticator
facilityType
|
TXA-10
|
custodian
practiceSetting
|
|
relatesTo
period
|
|
code
date
|
|
target
author
|
TXA-9
(No
standard
way
to
indicate
a
Device
in
HL7
v2
MDM
message)
|
description
attester
|
TXA-25
|
securityLabel
mode
|
TXA-18
|
content
time
|
|
attachment
party
|
TXA-3
for
mime
type
TXA-10
|
format
custodian
|
|
context
relatesTo
|
|
encounter
code
|
|
event
target
|
|
period
description
|
TXA-25
|
|
securityLabel
|
TXA-18
|
facilityType
content
|
|
practiceSetting
attachment
|
TXA-3
for
mime
type
|
sourcePatientInfo
profile
|
|
related
value[x]
|
|
|
DocumentReference
|
when
describing
a
CDA
|
masterIdentifier
identifier
|
ClinicalDocument/id
|
identifier
basedOn
|
|
|
status
|
|
|
docStatus
|
|
|
type
|
ClinicalDocument/code/@code
The
typeCode
should
be
mapped
from
the
ClinicalDocument/code
element
to
a
set
of
document
type
codes
configured
in
the
affinity
domain.
One
suggested
coding
system
to
use
for
typeCode
is
LOINC,
in
which
case
the
mapping
step
can
be
omitted.
|
|
category
|
Derived
from
a
mapping
of
/ClinicalDocument/code/@code
to
an
Affinity
Domain
specified
coded
value
to
use
and
coding
system.
Affinity
Domains
are
encouraged
to
use
the
appropriate
value
for
Type
of
Service,
based
on
the
LOINC
Type
of
Service
(see
Page
53
of
the
LOINC
User's
Manual).
Must
be
consistent
with
/ClinicalDocument/code/@code
|
|
subject
|
ClinicalDocument/recordTarget/
|
date
context
|
|
author
event
|
ClinicalDocument/author
|
authenticator
facilityType
|
ClinicalDocument/legalAuthenticator
usually
a
mapping
to
a
local
ValueSet.
Must
be
consistent
with
/clinicalDocument/code
|
custodian
practiceSetting
|
usually
from
a
mapping
to
a
local
ValueSet
|
relatesTo
period
|
ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value
-->
ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value
|
code
date
|
|
target
author
|
ClinicalDocument/author
|
description
attester
|
.authenticator/.legalAuthenticator
|
securityLabel
mode
|
ClinicalDocument/confidentialityCode/@code
implied
by
.authenticator/.legalAuthenticator
|
content
time
| .authenticator.time
|
|
party
|
.authenticator.assignedEnttty
|
attachment
custodian
|
ClinicalDocument/languageCode,
ClinicalDocument/title,
ClinicalDocument/date
|
format
relatesTo
|
derived
from
the
IHE
Profile
or
Implementation
Guide
templateID
|
context
code
|
ClinicalDocument/relatedDocument/typeCode
|
encounter
target
|
ClinicalDocument/relatedDocument/parentDocument
|
event
description
|
|
period
securityLabel
|
ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/low/
@value
-->
ClinicalDocument/documentationOf/
serviceEvent/effectiveTime/high/
@value
ClinicalDocument/confidentialityCode/@code
|
facilityType
content
|
usually
a
mapping
to
a
local
ValueSet.
Must
be
consistent
with
/clinicalDocument/code
|
practiceSetting
attachment
|
usually
from
a
mapping
to
a
local
ValueSet
ClinicalDocument/languageCode,
ClinicalDocument/title,
ClinicalDocument/date
|
sourcePatientInfo
profile
|
ClinicalDocument/recordTarget/
derived
from
the
IHE
Profile
or
Implementation
Guide
templateID
|
related
value[x]
|
ClinicalDocument/relatedDocument
derived
from
the
IHE
Profile
or
Implementation
Guide
templateID
|
|
DocumentReference
|
Document[classCode="DOC"
and
moodCode="EVN"]
|
masterIdentifier
identifier
|
.id
/
.setId
|
identifier
basedOn
|
.id
/
.setId
.outboundRelationship[typeCode=FLFS].target
|
|
status
|
interim:
.completionCode="IN"
&
./statusCode[isNormalDatatype()]="active";
final:
.completionCode="AU"
&&
./statusCode[isNormalDatatype()]="complete"
and
not(./inboundRelationship[typeCode="SUBJ"
and
isNormalActRelationship()]/source[subsumesCode("ActClass#CACT")
and
moodCode="EVN"
and
domainMember("ReviseDocument",
code)
and
isNormalAct()]);
amended:
.completionCode="AU"
&&
./statusCode[isNormalDatatype()]="complete"
and
./inboundRelationship[typeCode="SUBJ"
and
isNormalActRelationship()]/source[subsumesCode("ActClass#CACT")
and
moodCode="EVN"
and
domainMember("ReviseDocument",
code)
and
isNormalAct()
and
statusCode="completed"];
withdrawn
:
.completionCode=NI
&&
./statusCode[isNormalDatatype()]="obsolete"
|
|
docStatus
|
.statusCode
|
|
type
|
./code
|
|
category
|
.outboundRelationship[typeCode="COMP].target[classCode="LIST",
moodCode="EVN"].code
|
|
subject
|
.participation[typeCode="SBJ"].role[typeCode="PAT"]
|
date
context
|
.availabilityTime[type="TS"]
unique(highest(./outboundRelationship[typeCode="SUBJ"
and
isNormalActRelationship()],
priorityNumber)/target[moodCode="EVN"
and
classCode=("ENC",
"PCPR")
and
isNormalAct])
|
author
event
|
.participation[typeCode="AUT"].role[classCode="ASSIGNED"]
.code
|
authenticator
facilityType
|
.participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]
.participation[typeCode="LOC"].role[classCode="DSDLOC"].code
|
custodian
practiceSetting
|
.participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG"
and
determinerCode="INST"]
.participation[typeCode="LOC"].role[classCode="DSDLOC"].code
|
relatesTo
period
|
.outboundRelationship
.effectiveTime
|
code
date
|
.outboundRelationship.typeCode
.availabilityTime[type="TS"]
|
target
author
|
.target[classCode="DOC",
moodCode="EVN"].id
.participation[typeCode="AUT"].role[classCode="ASSIGNED"]
|
description
attester
|
.outboundRelationship[typeCode="SUBJ"].target.text
.participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]
|
securityLabel
mode
|
.confidentialityCode
unique(./modeCode)
|
content
time
|
document.text
./time[type="TS"
and
isNormalDatatype()]
|
attachment
party
|
document.text
./role[classCode="ASSIGNED"
and
isNormalRole]/player[determinerCode="INST"
and
classCode=("DEV",
"PSN")
and
isNormalEntity()]
or
./role[classCode="ASSIGNED"
and
isNormalRole
and
not(player)]/scoper[determinerCode="INST"
and
classCode="ORG"
and
isNormalEntity()]
|
format
custodian
|
document.text
.participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG"
and
determinerCode="INST"]
|
context
relatesTo
|
outboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']
.outboundRelationship
|
encounter
code
|
.outboundRelationship.typeCode
|
unique(highest(./outboundRelationship[typeCode="SUBJ"
and
isNormalActRelationship()],
priorityNumber)/target[moodCode="EVN"
and
classCode=("ENC",
"PCPR")
and
isNormalAct])
target
| .target[classCode="DOC",
moodCode="EVN"].id
|
event
description
|
.code
.outboundRelationship[typeCode="SUBJ"].target.text
|
period
securityLabel
|
.effectiveTime
.confidentialityCode
|
facilityType
content
|
.participation[typeCode="LOC"].role[classCode="DSDLOC"].code
document.text
|
practiceSetting
attachment
|
.participation[typeCode="LOC"].role[classCode="DSDLOC"].code
document.text
|
sourcePatientInfo
profile
|
.participation[typeCode="SBJ"].role[typeCode="PAT"]
document.text
|
related
value[x]
|
./outboundRelationship[typeCode="PERT"
and
isNormalActRelationship()]
/
target[isNormalAct]
document.text
|
|
DocumentReference
|
DocumentEntry
|
masterIdentifier
identifier
|
DocumentEntry.entryUUID,
DocumentEntry.uniqueId
|
identifier
basedOn
|
DocumentEntry.entryUUID
DocumentEntry.referenceIdList
|
|
status
|
DocumentEntry.availabilityStatus
|
|
docStatus
|
|
|
type
|
DocumentEntry.type
DocumentEntry.typeCode
|
|
category
|
DocumentEntry.class
DocumentEntry.classCode
|
|
subject
|
DocumentEntry.patientId
|
date
context
|
|
author
event
|
DocumentEntry.author
DocumentEntry.referenceIdList
|
authenticator
facilityType
|
DocumentEntry.legalAuthenticator
DocumentEntry.healthcareFacilityTypeCode
|
custodian
practiceSetting
|
DocumentEntry.practiceSettingCode
|
relatesTo
period
|
DocumentEntry
Associations
DocumentEntry.serviceStartTime,
DocumentEntry.serviceStopTime
|
code
date
|
DocumentEntry
Associations
type
|
target
author
|
DocumentEntry
Associations
reference
DocumentEntry.author
|
description
attester
|
DocumentEntry.comments
DocumentEntry.legalAuthenticator
|
securityLabel
mode
|
DocumentEntry.confidentialityCode
|
content
time
|
|
attachment
party
|
DocumentEntry.mimeType,
DocumentEntry.languageCode,
DocumentEntry.URI,
DocumentEntry.size,
DocumentEntry.hash,
DocumentEntry.title,
DocumentEntry.creationTime
|
format
custodian
|
DocumentEntry.formatCode
|
context
relatesTo
|
DocumentEntry
Associations
|
encounter
code
|
DocumentEntry
Associations
type
|
|
target
|
DocumentEntry
Associations
reference
|
event
description
|
DocumentEntry.eventCodeList
DocumentEntry.comments
|
period
securityLabel
|
DocumentEntry.serviceStartTime,
DocumentEntry.serviceStopTime
DocumentEntry.confidentialityCode
|
facilityType
content
|
DocumentEntry.healthcareFacilityTypeCode
|
practiceSetting
attachment
|
DocumentEntry.practiceSettingCode
DocumentEntry.mimeType,
DocumentEntry.languageCode,
DocumentEntry.URI,
DocumentEntry.size,
DocumentEntry.hash,
DocumentEntry.title,
DocumentEntry.creationTime
|
sourcePatientInfo
profile
|
DocumentEntry.sourcePatientInfo,
DocumentEntry.sourcePatientId
DocumentEntry.formatCode
|
related
value[x]
|
DocumentEntry.referenceIdList
DocumentEntry.formatCode
|
|
DocumentReference
|
when
describing
a
Composition
|
masterIdentifier
identifier
|
Composition.identifier
|
identifier
basedOn
|
|
|
status
|
|
|
docStatus
|
Composition.status
|
|
type
|
Composition.type
|
|
category
|
Composition.class
|
|
subject
|
Composition.subject
|
date
context
|
Composition.date
Composition.context
|
author
event
|
Composition.author
Composition.event.code
|
authenticator
facilityType
|
Composition.attester
usually
from
a
mapping
to
a
local
ValueSet
|
custodian
practiceSetting
|
Composition.custodian
usually
from
a
mapping
to
a
local
ValueSet
|
relatesTo
period
|
Composition.relatesTo
Composition.event.period
|
code
date
|
Composition.relatesTo.code
Composition.date
|
target
author
|
Composition.relatesTo.target
Composition.author
|
description
attester
|
Composition.attester
|
securityLabel
mode
|
Composition.confidentiality,
Composition.meta.security
Composition.attester.mode
|
content
time
|
Bundle(Composition+*)
Composition.attester.time
|
attachment
party
|
Composition.language,
Composition.title,
Composition.date
Composition.attester.party
|
format
custodian
|
Composition.meta.profile
Composition.custodian
|
context
relatesTo
|
Composition.relatesTo
|
|
code
|
Composition.relatesTo.code
|
encounter
target
|
Composition.encounter
Composition.relatesTo.target
|
event
description
|
Composition.event.code
|
period
securityLabel
|
Composition.event.period
Bundle.meta.security
|
facilityType
content
|
usually
from
a
mapping
to
a
local
ValueSet
Bundle(Composition+*)
|
practiceSetting
attachment
|
usually
from
a
mapping
to
a
local
ValueSet
Composition.language,
Composition.title,
Composition.date
|
sourcePatientInfo
profile
|
Composition.subject
Composition.meta.profile
|
related
value[x]
|
Composition.event.detail
Composition.meta.profile
|