R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). 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

Patient Care icon Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Patient Compartments: Patient, Practitioner, RelatedPerson

R4 : R5 Conversion maps for CareTeam.

Functional status for this map: 1 test that all execute ok. All tests pass round-trip testing and 1 r3 resources are invalid (0 errors). (see documentation)

map "http://hl7.org/fhir/StructureMap/CareTeam3to4" = "R3 to R4 Conversions for CareTeam"

uses "http://hl7.org/fhir/3.0/StructureDefinition/CareTeam" alias CareTeamR3 as source
uses "http://hl7.org/fhir/StructureDefinition/CareTeam" alias CareTeam as target

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

group CareTeam(source src : CareTeamR3, target tgt : CareTeam) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.name -> tgt.name;
  src.subject -> tgt.subject;
  src.context -> tgt.encounter;
  src.period -> tgt.period;
  src.participant as vs0 -> tgt.participant as vt0 then participant(vs0, vt0);
  src.reasonCode -> tgt.reasonCode;
  src.reasonReference -> tgt.reasonReference;
  src.managingOrganization -> tgt.managingOrganization;
  src.note -> tgt.note;
}

group participant(source src, target tgt) extends BackboneElement {
  src.role -> tgt.role;
  src.member -> tgt.member;
  src.onBehalfOf -> tgt.onBehalfOf;
  src.period -> tgt.period;
}


map "http://hl7.org/fhir/StructureMap/CareTeam4to3" = "R4 to R3 Conversion for CareTeam"

uses "http://hl7.org/fhir/StructureDefinition/CareTeam" alias CareTeam as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/CareTeam" alias CareTeamR3 as target

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

group CareTeam(source src : CareTeam, target tgt : CareTeamR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.category -> tgt.category;
  src.name -> tgt.name;
  src.subject -> tgt.subject;
  src.encounter -> tgt.context;
  src.period -> tgt.period;
  src.participant as vs0 -> tgt.participant as vt0 then participant(vs0, vt0);
  src.reasonCode -> tgt.reasonCode;
  src.reasonReference -> tgt.reasonReference;
  src.managingOrganization -> tgt.managingOrganization;
  src.note -> tgt.note;
}

group participant(source src, target tgt) extends BackboneElement {
  src.role -> tgt.role;
  src.member -> tgt.member;
  src.onBehalfOf -> tgt.onBehalfOf;
  src.period -> tgt.period;
}


<p>No validation errors - all conversions are clean</p>