FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4B R4 R3

Structured Documents Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Device, Patient, Practitioner, RelatedPerson

R2 : R3 Converson maps for DocumentManifest.

Functional status for this map: 1 test that all execute ok. 1 fail round-trip testing and all r3 resources are valid. (see documentation)

map "http://hl7.org/fhir/StructureMap/DocumentManifest2to3" = "R2 to R3 Conversions for DocumentManifest"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DocumentManifest" alias DocumentManifestR2 as source
uses "http://hl7.org/fhir/StructureDefinition/DocumentManifest" alias DocumentManifest as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

group for type+types  DocumentManifest extends DomainResource
  input src : DocumentManifestR2 as source
  input tgt : DocumentManifest as target

  "DocumentManifest-masterIdentifier" : for src.masterIdentifier make tgt.masterIdentifier
  "DocumentManifest-identifier" : for src.identifier make tgt.identifier
  "DocumentManifest-subject" : for src.subject make tgt.subject
  "DocumentManifest-recipient" : for src.recipient make tgt.recipient
  "DocumentManifest-type" : for src.type make tgt.type
  "DocumentManifest-author" : for src.author make tgt.author
  "DocumentManifest-created" : for src.created make tgt.created
  "DocumentManifest-source" : for src.source make tgt.source
  "DocumentManifest-status" : for src.status make tgt.status
  "DocumentManifest-description" : for src.description make tgt.description
  "DocumentManifest-content" : for src.content as src make tgt.content as vt0 then dmContent(src, vt0)
  "DocumentManifest-related" : for src.related as src make tgt.related as vt0 then dmRelated(src, vt0)
endgroup

group dmContent extends BackboneElement
  input src as source
  input tgt as target

  "DocumentManifest.content-p-Attachment" : for src.p make tgt.p 
endgroup  
  
group dmRelated extends BackboneElement
  input src as source
  input tgt as target

  "DocumentManifest.related-identifier" : for src.identifier make tgt.identifier
  "DocumentManifest.related-ref" : for src.ref make tgt.ref
endgroup  

map "http://hl7.org/fhir/StructureMap/DocumentManifest3to2" = "R3 to R2 Conversion for DocumentManifest"

uses "http://hl7.org/fhir/StructureDefinition/DocumentManifest" alias DocumentManifest as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DocumentManifest" alias DocumentManifestR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group for type+types  DocumentManifest extends DomainResource
  input src : DocumentManifest as source
  input tgt : DocumentManifestR2 as target

  "DocumentManifest-masterIdentifier" : for src.masterIdentifier make tgt.masterIdentifier
  "DocumentManifest-identifier" : for src.identifier make tgt.identifier
  "DocumentManifest-subject" : for src.subject make tgt.subject
  "DocumentManifest-recipient" : for src.recipient make tgt.recipient
  "DocumentManifest-type" : for src.type make tgt.type
  "DocumentManifest-author" : for src.author make tgt.author
  "DocumentManifest-created" : for src.created make tgt.created
  "DocumentManifest-source" : for src.source make tgt.source
  "DocumentManifest-status" : for src.status make tgt.status
  "DocumentManifest-description" : for src.description make tgt.description
  "DocumentManifest-content" : for src.content as src make tgt.content as vt0 then dmContent(src, vt0)
  "DocumentManifest-related" : for src.related as src make tgt.related as vt0 then dmRelated(src, vt0)
endgroup

group dmContent extends BackboneElement
  input src as source
  input tgt as target

  "DocumentManifest.content-p-Attachment" : for src.p make tgt.p 
endgroup  
  
group dmRelated extends BackboneElement
  input src as source
  input tgt as target

  "DocumentManifest.related-identifier" : for src.identifier make tgt.identifier
  "DocumentManifest.related-ref" : for src.ref make tgt.ref
endgroup