Cumuluz Translate Implementation Guide
0.1.0 - ci-build

Cumuluz Translate Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Supported R4 to R4 Transform - XML Representation

Draft as of 2026-10-29

Raw xml | Download


<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="R4TransformOperation"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: OperationDefinition R4TransformOperation</b></p><a name="R4TransformOperation"> </a><a name="hcR4TransformOperation"> </a><p>URL: [base]/$transform</p><h3>Parameters</h3><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>source</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/resource.html">Resource</a></td><td/><td><div><p>The supported R4 source resource, collection/document Bundle for NLPS assembly, or Binary x-application/hl7-v2+er7 for the registered experimental GLIMS R21/2.4 or R22/2.5 contract.</p>
</div></td></tr><tr><td>IN</td><td>sourceProfile</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#canonical">canonical</a></td><td/><td><div><p>Canonical URL of the supported R4 source profile. Omission requires one unique supported declared profile, preferring its most-derived declared descendant. Omit for NLPS document Bundles; each entry declares its source profile. For Binary laboratory input, MSH selects the exact registered R21/2.4 or R22/2.5 source contract; an explicit sourceProfile must agree with that header. A supplied |version must match the registered contract.</p>
</div></td></tr><tr><td>IN</td><td>targetProfile</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#canonical">canonical</a></td><td/><td><div><p>Canonical URL of the requested R4 target profile. A supplied |version must exactly match an installed StructureDefinition.version.</p>
</div></td></tr><tr><td>IN</td><td>validationMode</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td/><td><div><p>Ordered source, logical, governance, and target validation. report is the non-blocking default; enforce blocks errors; none is explicitly gated.</p>
</div></td></tr><tr><td>IN</td><td>returnLogical</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#boolean">boolean</a></td><td/><td><div><p>When true, include the intermediate logical model as Binary. Laboratory input returns per-resource edge/logical Binary parts in mappingEvidence.</p>
</div></td></tr><tr><td>OUT</td><td>result</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/resource.html">Resource</a></td><td/><td><div><p>The translated R4 resource or NLPS document Bundle; in NLPS document mode targetProfile identifies its Composition contract.</p>
</div></td></tr><tr><td>OUT</td><td>targetProfile</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#canonical">canonical</a></td><td/><td><div><p>Canonical URL of the R4 target profile route used by the translation.</p>
</div></td></tr><tr><td>OUT</td><td>translationReport</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/parameters.html">Parameters</a></td><td/><td><div><p>Required for FHIR profile-pair sources. Binary laboratory input instead returns mappingEvidence and profileAssessment.</p>
</div></td></tr><tr><td>OUT</td><td>logical</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/binary.html">Binary</a></td><td/><td><div><p>The intermediate logical model serialized as JSON for FHIR profile-pair sources.</p>
</div></td></tr><tr><td>OUT</td><td>outcome</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/operationoutcome.html">OperationOutcome</a></td><td/><td><div><p>Validation output for enforce and report modes.</p>
</div></td></tr><tr><td>IN</td><td>timeZone</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td/><td><div><p>Binary laboratory input only: zone for offset-free timestamps; default Europe/Amsterdam. Laboratory validationMode is report or enforce.</p>
</div></td></tr><tr><td>OUT</td><td>source</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/binary.html">Binary</a></td><td/><td><div><p>Binary laboratory input only: original source bytes.</p>
</div></td></tr><tr><td>OUT</td><td>profileAssessment</td><td/><td>0..*</td><td/><td/><td><div><p>Conditional output for the registered laboratory Binary source.</p>
</div></td></tr><tr><td>OUT</td><td>profileAssessment.resource</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td/></tr><tr><td>OUT</td><td>profileAssessment.profile</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#canonical">canonical</a></td><td/><td/></tr><tr><td>OUT</td><td>profileAssessment.accepted</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#boolean">boolean</a></td><td/><td/></tr><tr><td>OUT</td><td>profileAssessment.outcome</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/operationoutcome.html">OperationOutcome</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence</td><td/><td>0..*</td><td/><td/><td><div><p>Conditional output for the registered laboratory Binary source.</p>
</div></td></tr><tr><td>OUT</td><td>mappingEvidence.resource</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.sourceMap</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#canonical">canonical</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.targetMap</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#canonical">canonical</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.logicalValidation</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/operationoutcome.html">OperationOutcome</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.edgeValidation</td><td/><td>1..1</td><td><a href="http://hl7.org/fhir/R4/operationoutcome.html">OperationOutcome</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.edge</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/binary.html">Binary</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.logical</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/binary.html">Binary</a></td><td/><td/></tr><tr><td>IN</td><td>documentContext</td><td/><td>0..1</td><td><a href="http://hl7.org/fhir/R4/composition.html">Composition</a></td><td/><td><div><p>NLPS Bundle input only: caller-authored R4 Composition with explicit subject, author, identifier, date, title, five required sections, narratives and supplied emptyReason assertions. Supply this context or one registered R4 Composition entry, never both. Unsupported for Binary laboratory input.</p>
</div></td></tr></table></div>
  </text>
  <url value="https://fhir.cumuluz.org/OperationDefinition/r4-transform"/>
  <version value="0.1.0"/>
  <name value="R4Transform"/>
  <title value="Supported R4 to R4 Transform"/>
  <status value="draft"/>
  <kind value="operation"/>
  <date value="2026-10-29T15:53:40+01:00"/>
  <publisher value="Cumuluz"/>
  <description
               value="System-level transform for registered R4 profile pairs, NLPS document assembly from R4 Bundles, and experimental GLIMS OUL R21/2.4 or R22/2.5 Binary or multipart input to EU Lab 2.1.0."/>
  <affectsState value="false"/>
  <code value="transform"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <parameter>
    <name value="source"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation
                   value="The supported R4 source resource, collection/document Bundle for NLPS assembly, or Binary x-application/hl7-v2+er7 for the registered experimental GLIMS R21/2.4 or R22/2.5 contract."/>
    <type value="Resource"/>
  </parameter>
  <parameter>
    <name value="sourceProfile"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Canonical URL of the supported R4 source profile. Omission requires one unique supported declared profile, preferring its most-derived declared descendant. Omit for NLPS document Bundles; each entry declares its source profile. For Binary laboratory input, MSH selects the exact registered R21/2.4 or R22/2.5 source contract; an explicit sourceProfile must agree with that header. A supplied |version must match the registered contract."/>
    <type value="canonical"/>
  </parameter>
  <parameter>
    <name value="targetProfile"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation
                   value="Canonical URL of the requested R4 target profile. A supplied |version must exactly match an installed StructureDefinition.version."/>
    <type value="canonical"/>
  </parameter>
  <parameter>
    <name value="validationMode"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Ordered source, logical, governance, and target validation. report is the non-blocking default; enforce blocks errors; none is explicitly gated."/>
    <type value="code"/>
  </parameter>
  <parameter>
    <name value="returnLogical"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="When true, include the intermediate logical model as Binary. Laboratory input returns per-resource edge/logical Binary parts in mappingEvidence."/>
    <type value="boolean"/>
  </parameter>
  <parameter>
    <name value="result"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation
                   value="The translated R4 resource or NLPS document Bundle; in NLPS document mode targetProfile identifies its Composition contract."/>
    <type value="Resource"/>
  </parameter>
  <parameter>
    <name value="targetProfile"/>
    <use value="out"/>
    <min value="1"/>
    <max value="1"/>
    <documentation
                   value="Canonical URL of the R4 target profile route used by the translation."/>
    <type value="canonical"/>
  </parameter>
  <parameter>
    <name value="translationReport"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Required for FHIR profile-pair sources. Binary laboratory input instead returns mappingEvidence and profileAssessment."/>
    <type value="Parameters"/>
  </parameter>
  <parameter>
    <name value="logical"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="The intermediate logical model serialized as JSON for FHIR profile-pair sources."/>
    <type value="Binary"/>
  </parameter>
  <parameter>
    <name value="outcome"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Validation output for enforce and report modes."/>
    <type value="OperationOutcome"/>
  </parameter>
  <parameter>
    <name value="timeZone"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Binary laboratory input only: zone for offset-free timestamps; default Europe/Amsterdam. Laboratory validationMode is report or enforce."/>
    <type value="string"/>
  </parameter>
  <parameter>
    <name value="source"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Binary laboratory input only: original source bytes."/>
    <type value="Binary"/>
  </parameter>
  <parameter>
    <name value="profileAssessment"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <documentation
                   value="Conditional output for the registered laboratory Binary source."/>
    <part>
      <name value="resource"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Reference"/>
    </part>
    <part>
      <name value="profile"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="canonical"/>
    </part>
    <part>
      <name value="accepted"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="boolean"/>
    </part>
    <part>
      <name value="outcome"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="OperationOutcome"/>
    </part>
  </parameter>
  <parameter>
    <name value="mappingEvidence"/>
    <use value="out"/>
    <min value="0"/>
    <max value="*"/>
    <documentation
                   value="Conditional output for the registered laboratory Binary source."/>
    <part>
      <name value="resource"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="Reference"/>
    </part>
    <part>
      <name value="sourceMap"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="canonical"/>
    </part>
    <part>
      <name value="targetMap"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="canonical"/>
    </part>
    <part>
      <name value="logicalValidation"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="OperationOutcome"/>
    </part>
    <part>
      <name value="edgeValidation"/>
      <use value="out"/>
      <min value="1"/>
      <max value="1"/>
      <type value="OperationOutcome"/>
    </part>
    <part>
      <name value="edge"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="Binary"/>
    </part>
    <part>
      <name value="logical"/>
      <use value="out"/>
      <min value="0"/>
      <max value="1"/>
      <type value="Binary"/>
    </part>
  </parameter>
  <parameter>
    <name value="documentContext"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="NLPS Bundle input only: caller-authored R4 Composition with explicit subject, author, identifier, date, title, five required sections, narratives and supplied emptyReason assertions. Supply this context or one registered R4 Composition entry, never both. Unsupported for Binary laboratory input."/>
    <type value="Composition"/>
  </parameter>
</OperationDefinition>