Argonaut Data Query Implementation Guide Version 1.0.0

This page is part of the Argonaut Data Query Implementation Guide (v1.0.0: Release) based on FHIR R2. This is the current published version. For a full list of available versions, see the Directory of published versions

D.4.1.4 StructureDefinition: Argonaut DocumentReference Profile - Mappings

Mappings for the StructureDefinition-argo-documentreference Profile.

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

Argonaut DocumentReference Profile
DocumentReferenceargoprofileDocument[classCode="DOC" and moodCode="EVN"]
   id
   meta
   implicitRules
   language
   textAct.text?
   containedN/A
   extensionN/A
   modifierExtensionN/A
   masterIdentifier.id
   identifier.id / .setId
   subject.participation[typeCode="SBJ"].role[typeCode="PAT"]
   type./code
   class.outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code
   author.participation[typeCode="AUT"].role[classCode="ASSIGNED"]
   custodian.participation[typeCode="RCV"].role[classCode="CUST"].scoper[classCode="ORG" and determinerCode="INST"]
   authenticator.participation[typeCode="AUTHEN"].role[classCode="ASSIGNED"]
   created.effectiveTime[type="TS"]
   indexed.availabilityTime[type="TS"]
   statusinterim: .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
   relatesTo.outboundRelationship
      idn/a
      extensionn/a
      modifierExtensionN/A
      code.outboundRelationship.typeCode
      target.target[classCode="DOC", moodCode="EVN"].id
   description.outboundRelationship[typeCode="SUBJ"].target.text
   securityLabel.confidentialityCode
   contentdocument.text
      idn/a
      extensionn/a
      modifierExtensionN/A
      attachmentdocument.text
         idn/a
         extensionn/a
         contentType./mediaType, ./charset
         language./language
         data./data
         url./reference/literal
         sizeN/A (needs data type R3 proposal)
         hash.integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]
         title./title/data
         creationN/A (needs data type R3 proposal)
      formatdocument.text
   contextoutboundRelationship[typeCode="SUBJ"].target[classCode<'ACT']
      idn/a
      extensionn/a
      modifierExtensionN/A
      encounterunique(highest(./outboundRelationship[typeCode="SUBJ" and isNormalActRelationship()], priorityNumber)/target[moodCode="EVN" and classCode=("ENC", "PCPR") and isNormalAct])
      event.code
      period.effectiveTime
      facilityType.participation[typeCode="LOC"].role[classCode="DSDLOC"].code
      practiceSetting.participation[typeCode="LOC"].role[classCode="DSDLOC"].code
      sourcePatientInfo.participation[typeCode="SBJ"].role[typeCode="PAT"]
      related./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct]
         idn/a
         extensionn/a
         modifierExtensionN/A
         identifier./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct] .id
         ref./outboundRelationship[typeCode="PERT" and isNormalActRelationship()] / target[isNormalAct].text.reference

Mappings for W5 Mapping (http://hl7.org/fhir/w5)

Argonaut DocumentReference Profile
DocumentReferenceargoprofileinfrastructure.documents
   id
   meta
   implicitRules
   language
   text
   contained
   extension
   modifierExtension
   masterIdentifierid
   identifierid
   subjectwho.focus
   typeclass
   classclass
   authorwho.author
   custodian
   authenticatorwho.witness
   createdwhen.done
   indexedwhen.recorded
   statusstatus
   docStatusstatus
   relatesTo
      id
      extension
      modifierExtension
      code
      target
   description
   securityLabel
   content
      id
      extension
      modifierExtension
      attachment
         id
         extension
         contentType
         language
         data
         url
         size
         hash
         title
         creation
      format
   context
      id
      extension
      modifierExtension
      encountercontext
      event
      period
      facilityType
      practiceSetting
      sourcePatientInfo
      related
         id
         extension
         modifierExtension
         identifier
         ref

Mappings for XDS (http://ihe.net/xds)

Argonaut DocumentReference Profile
DocumentReferenceargoprofile
   id
   meta
   implicitRules
   language
   text
   contained
   extension
   modifierExtension
   masterIdentifierDocumentEntry.uniqueId
   identifierDocumentEntry.entryUUID
   subjectDocumentEntry.patientId
   typeDocumentEntry.type
   classDocumentEntry.class
   authorDocumentEntry.author
   custodian
   authenticatorDocumentEntry.legalAuthenticator
   createdDocumentEntry.submissionTime
   indexedDocumentEntry.submissionTime
   statusDocumentEntry status
   docStatus
   relatesTo
      id
      extension
      modifierExtension
      codeDocumentEntry Associations type
      targetDocumentEntry Associations reference
   descriptionDocumentEntry.description
   securityLabelDocumentEntry.confidentialityCode
   content
      id
      extension
      modifierExtension
      attachmentDocumentEntry.mimeType DocumentEntry.languageCode DocumentEntry.URI DocumentEntry.size DocumentEntry.hash DocumentEntry.title
         id
         extension
         contentType
         language
         data
         url
         size
         hash
         title
         creation
      formatDocumentEntry.formatCode
   context
      id
      extension
      modifierExtension
      encounter
      eventDocumentEntry.eventCodeList
      periodDocumentEntry.serviceStartTime DocumentEntry.serviceStopTime
      facilityTypeDocumentEntry.healthcareFacilityTypeCode
      practiceSettingDocumentEntry.practiceSettingCode
      sourcePatientInfoDocumentEntry.sourcePatientInfo DocumentEntry.sourcePatientId
      relatedDocumentEntry.referenceIdList
         id
         extension
         modifierExtension
         identifier
         ref

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

Argonaut DocumentReference Profile
DocumentReferenceargoprofile
   id
   meta
   implicitRules
   language
   text
   contained
   extension
   modifierExtension
   masterIdentifierTXA-12
   identifierTXA-16?
   subjectPID-3 (No standard way to define a Practitioner or Group subject in HL7 v2 MDM message)
   typeTXA-2
   class
   authorTXA-9 (No standard way to indicate a Device in HL7 v2 MDM message)
   custodian
   authenticatorTXA-10
   createdTXA-6
   indexed
   statusTXA-19
   docStatusTXA-17
   relatesTo
      id
      extension
      modifierExtension
      code
      target
   descriptionTXA-25
   securityLabelTXA-18
   content
      id
      extension
      modifierExtension
      attachmentTXA-3 for mime type
         id
         extension
         contentTypeED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used
         language
         dataED.5
         urlRP.1+RP.2 - if they refer to a URL (see v2.6)
         size
         hash
         title
         creation
      format
   context
      id
      extension
      modifierExtension
      encounter
      event
      period
      facilityType
      practiceSetting
      sourcePatientInfo
      related
         id
         extension
         modifierExtension
         identifier
         ref