R4 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). 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: R5 R4B R4 R3

Patient Care Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Patient

R2 : R3 Conversion maps for FamilyMemberHistory.

Functional status for this map: 3 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

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

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/FamilyMemberHistory" alias FamilyMemberHistoryR2 as source
uses "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory" alias FamilyMemberHistory as target

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

group for type+types  FamilyMemberHistory extends DomainResource
  input src : FamilyMemberHistoryR2 as source
  input tgt : FamilyMemberHistory as target

  "FamilyMemberHistory-identifier" : for src.identifier make tgt.identifier
  "FamilyMemberHistory-patient" : for src.patient make tgt.patient
  "FamilyMemberHistory-date" : for src.date make tgt.date
  "FamilyMemberHistory-status" : for src.status make tgt.status
  "FamilyMemberHistory-name" : for src.name make tgt.name
  "FamilyMemberHistory-relationship" : for src.relationship make tgt.relationship
  "FamilyMemberHistory-gender" : for src.gender make tgt.gender
  "FamilyMemberHistory-born" : for src.born make tgt.born
  "FamilyMemberHistory-age" : for src.age make tgt.age  
  "FamilyMemberHistory-deceased" : for src.deceased make tgt.deceased
  "FamilyMemberHistory-note" : for src.note make tgt.note
  "FamilyMemberHistory-condition" : for src.condition as vs0 make tgt.condition as vt0 then fmhCondition(vs0, vt0)
endgroup  

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

  "FamilyMemberHistory.condition-code" : for src.code make tgt.code
  "FamilyMemberHistory.condition-outcome" : for src.outcome make tgt.outcome
  "FamilyMemberHistory.condition-onset" : for src.onset make tgt.onset
  "FamilyMemberHistory.condition-note" : for src.note make tgt.note
endgroup

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

uses "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory" alias FamilyMemberHistory as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/FamilyMemberHistory" alias FamilyMemberHistoryR2 as target

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

group for type+types  FamilyMemberHistory extends DomainResource
  input src : FamilyMemberHistory as source
  input tgt : FamilyMemberHistoryR2 as target

  "FamilyMemberHistory-identifier" : for src.identifier make tgt.identifier
  "FamilyMemberHistory-patient" : for src.patient make tgt.patient
  "FamilyMemberHistory-date" : for src.date make tgt.date
  "FamilyMemberHistory-status" : for src.status make tgt.status
  "FamilyMemberHistory-name" : for src.name make tgt.name
  "FamilyMemberHistory-relationship" : for src.relationship make tgt.relationship
  "FamilyMemberHistory-gender" : for src.gender make tgt.gender
  "FamilyMemberHistory-born" : for src.born make tgt.born
  "FamilyMemberHistory-age" : for src.age make tgt.age  
  "FamilyMemberHistory-deceased" : for src.deceased make tgt.deceased
  "FamilyMemberHistory-note" : for src.note make tgt.note
  "FamilyMemberHistory-condition" : for src.condition as vs0 make tgt.condition as vt0 then fmhCondition(vs0, vt0)
endgroup  

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

  "FamilyMemberHistory.condition-code" : for src.code make tgt.code
  "FamilyMemberHistory.condition-outcome" : for src.outcome make tgt.outcome
  "FamilyMemberHistory.condition-onset" : for src.onset make tgt.onset
  "FamilyMemberHistory.condition-note" : for src.note make tgt.note
endgroup