R4 Ballot #1 #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: (v3.5.0: R4 Ballot 2). #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 Administration Work Group Maturity Level : N/A Ballot Status : Informative Compartments : Not linked to any defined compartments

R2 : R3 : R4 Conversion maps for Organization.

Functional status for this map: 14 11 tests that all of which 1 fail to execute ok. All tests pass . 10 fail round-trip testing and 2 10 r3 resources are invalid (2 (0 errors). ( see documentation)

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

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


uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Organization" alias OrganizationR2 as source


uses "http://hl7.org/fhir/3.0/StructureDefinition/Organization" alias OrganizationR3 as source

uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as target

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

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


group for type+types  Organization extends DomainResource
  input src : OrganizationR2 as source
  input tgt : Organization as target


  "Organization-identifier" : for src.identifier make tgt.identifier
  "Organization-active" : for src.active make tgt.active
  "Organization-type" : for src.type make tgt.type
  "Organization-name" : for src.name make tgt.name
  "Organization-telecom" : for src.telecom make tgt.telecom
  "Organization-address" : for src.address make tgt.address
  "Organization-partOf" : for src.partOf make tgt.partOf
  "Organization-contact" : for src.contact as vs0 make tgt.contact as vt0 then orgContact(vs0, vt0)
endgroup


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

group Organization extends DomainResource
  input src : OrganizationR3 as source
  input tgt : Organization as target


  "Organization.contact-purpose" : for src.purpose make tgt.purpose
  "Organization.contact-name" : for src.name make tgt.name
  "Organization.contact-telecom" : for src.telecom make tgt.telecom
  "Organization.contact-address" : for src.address make tgt.address

  "Organization.identifier" : for src.identifier as vs make tgt.identifier as vt
  "Organization.active" : for src.active as vs make tgt.active as vt
  "Organization.type" : for src.type as vs make tgt.type as vt
  "Organization.name" : for src.name as vs make tgt.name as vt
  "Organization.alias" : for src.alias as vs make tgt.alias as vt
  "Organization.telecom" : for src.telecom as vs make tgt.telecom as vt
  "Organization.address" : for src.address as vs make tgt.address as vt
  "Organization.partOf" : for src.partOf as vs make tgt.partOf as vt
  "Organization.contact" : for src.contact as vs0 make tgt.contact as vt0 then {
    "Organization.contact.purpose" : for vs0.purpose as vs make vt0.purpose as vt
    "Organization.contact.name" : for vs0.name as vs make vt0.name as vt
    "Organization.contact.telecom" : for vs0.telecom as vs make vt0.telecom as vt
    "Organization.contact.address" : for vs0.address as vs make vt0.address as vt
  }
  "Organization.endpoint" : for src.endpoint as vs make tgt.endpoint as vt

endgroup



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

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



uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Organization" alias OrganizationR2 as target

uses "http://hl7.org/fhir/3.0/StructureDefinition/Organization" alias OrganizationR3 as target


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

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


group for type+types  Organization extends DomainResource
  input src : Organization as source
  input tgt : OrganizationR2 as target


  "Organization-identifier" : for src.identifier make tgt.identifier
  "Organization-active" : for src.active make tgt.active
  "Organization-type" : for src.type make tgt.type
  "Organization-name" : for src.name make tgt.name
  "Organization-telecom" : for src.telecom make tgt.telecom
  "Organization-address" : for src.address make tgt.address
  "Organization-partOf" : for src.partOf make tgt.partOf
  "Organization-contact" : for src.contact as vs0 make tgt.contact as vt0 then orgContact(vs0, vt0)
endgroup


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

group Organization extends DomainResource
  input src : Organization as source
  input tgt : OrganizationR3 as target


  "Organization.contact-purpose" : for src.purpose make tgt.purpose
  "Organization.contact-name" : for src.name make tgt.name
  "Organization.contact-telecom" : for src.telecom make tgt.telecom
  "Organization.contact-address" : for src.address make tgt.address

  "Organization.identifier" : for src.identifier as vs make tgt.identifier as vt
  "Organization.active" : for src.active as vs make tgt.active as vt
  "Organization.type" : for src.type as vs make tgt.type as vt
  "Organization.name" : for src.name as vs make tgt.name as vt
  "Organization.alias" : for src.alias as vs make tgt.alias as vt
  "Organization.telecom" : for src.telecom as vs make tgt.telecom as vt
  "Organization.address" : for src.address as vs make tgt.address as vt
  "Organization.partOf" : for src.partOf as vs make tgt.partOf as vt
  "Organization.contact" : for src.contact as vs0 make tgt.contact as vt0 then {
    "Organization.contact.purpose" : for vs0.purpose as vs make vt0.purpose as vt
    "Organization.contact.name" : for vs0.name as vs make vt0.name as vt
    "Organization.contact.telecom" : for vs0.telecom as vs make vt0.telecom as vt
    "Organization.contact.address" : for vs0.address as vs make vt0.address as vt
  }
  "Organization.endpoint" : for src.endpoint as vs make tgt.endpoint as vt

endgroup



org-uslab-example1 ERROR @ Organization.address.extension: The extension http://hl7.org/fhir/StructureDefinition/us-core-county is unknown, and not allowed here (src = InstanceValidator) org-uslab-example3 ERROR @ Organization.address.extension: The extension http://hl7.org/fhir/StructureDefinition/us-core-county is unknown, and not allowed here (src = InstanceValidator)