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: R5 R4B R4 R3

Patient Administration Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Not linked to any defined compartments

R2 : R3 Converson maps for Organization.

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

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

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

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

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

  "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
endgroup

map "http://hl7.org/fhir/StructureMap/Organization3to2" = "R3 to R2 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

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

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

  "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
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)