{
  "resourceType" : "OperationDefinition",
  "id" : "CcdaR4TransformOperation",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition CcdaR4TransformOperation</b></p><a name=\"CcdaR4TransformOperation\"> </a><a name=\"hcCcdaR4TransformOperation\"> </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/binary.html\">Binary</a></td><td/><td/></tr><tr><td>IN</td><td>sourceProfile</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>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/></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/></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/></tr><tr><td>IN</td><td>target</td><td/><td>1..*</td><td></td><td/><td/></tr><tr><td>IN</td><td>target.logicalType</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>IN</td><td>target.targetProfile</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>result</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td/></tr><tr><td>OUT</td><td>source</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/binary.html\">Binary</a></td><td/><td/></tr><tr><td>OUT</td><td>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>targetProfile</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>documentLogical</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</td><td/><td>0..*</td><td></td><td/><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.logicalType</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.sourceMap</td><td/><td>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.conceptMap</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#canonical\">canonical</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.targetProfile</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.validationStatus</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td/></tr><tr><td>OUT</td><td>mappingEvidence.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.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>OUT</td><td>unrouted</td><td/><td>0..*</td><td></td><td/><td/></tr><tr><td>OUT</td><td>unrouted.logicalType</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>OUT</td><td>unrouted.sourceEntry</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>OUT</td><td>unrouted.reason</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>OUT</td><td>sourceCoverage</td><td/><td>0..*</td><td></td><td/><td/></tr><tr><td>OUT</td><td>sourceCoverage.path</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr><tr><td>OUT</td><td>sourceCoverage.disposition</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td/></tr><tr><td>OUT</td><td>sourceCoverage.occurrences</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#integer\">integer</a></td><td/><td/></tr><tr><td>OUT</td><td>sourceCoverage.reason</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td/></tr></table></div>"
  },
  "url" : "https://fhir.cumuluz.org/OperationDefinition/ccda-r4-transform",
  "version" : "0.1.0",
  "name" : "CcdaR4Transform",
  "title" : "Experimental C-CDA 2.1 CCD to R4 collection",
  "status" : "draft",
  "kind" : "operation",
  "date" : "2026-10-29T15:53:40+01:00",
  "publisher" : "Cumuluz",
  "description" : "Experimental urn:cumuluz:ccda:CCD:2.1 to base R4 Bundle collection. JSON Parameters with UTF-8 XML Binary, or multipart source XML and parameters FHIR JSON file parts; report/enforce target validation. Enforce also rejects unrouted entries, but does not imply complete source coverage. No full source C-CDA IG validation.",
  "affectsState" : false,
  "code" : "transform",
  "system" : true,
  "type" : false,
  "instance" : false,
  "parameter" : [{
    "name" : "source",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "type" : "Binary"
  },
  {
    "name" : "sourceProfile",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "type" : "canonical"
  },
  {
    "name" : "targetProfile",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "type" : "canonical"
  },
  {
    "name" : "validationMode",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "type" : "code"
  },
  {
    "name" : "returnLogical",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "type" : "boolean"
  },
  {
    "name" : "target",
    "use" : "in",
    "min" : 1,
    "max" : "*",
    "part" : [{
      "name" : "logicalType",
      "use" : "in",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "targetProfile",
      "use" : "in",
      "min" : 1,
      "max" : "1",
      "type" : "canonical"
    }]
  },
  {
    "name" : "result",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "type" : "Bundle"
  },
  {
    "name" : "source",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "type" : "Binary"
  },
  {
    "name" : "outcome",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "type" : "OperationOutcome"
  },
  {
    "name" : "targetProfile",
    "use" : "out",
    "min" : 1,
    "max" : "1",
    "type" : "canonical"
  },
  {
    "name" : "documentLogical",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "Binary"
  },
  {
    "name" : "mappingEvidence",
    "use" : "out",
    "min" : 0,
    "max" : "*",
    "part" : [{
      "name" : "resource",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "Reference"
    },
    {
      "name" : "logicalType",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "sourceMap",
      "use" : "out",
      "min" : 1,
      "max" : "*",
      "type" : "canonical"
    },
    {
      "name" : "targetMap",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "canonical"
    },
    {
      "name" : "conceptMap",
      "use" : "out",
      "min" : 0,
      "max" : "*",
      "type" : "canonical"
    },
    {
      "name" : "targetProfile",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "canonical"
    },
    {
      "name" : "validationStatus",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "code"
    },
    {
      "name" : "outcome",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "OperationOutcome"
    },
    {
      "name" : "logical",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "Binary"
    }]
  },
  {
    "name" : "unrouted",
    "use" : "out",
    "min" : 0,
    "max" : "*",
    "part" : [{
      "name" : "logicalType",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "sourceEntry",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "reason",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    }]
  },
  {
    "name" : "sourceCoverage",
    "use" : "out",
    "min" : 0,
    "max" : "*",
    "part" : [{
      "name" : "path",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "disposition",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "code"
    },
    {
      "name" : "occurrences",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "integer"
    },
    {
      "name" : "reason",
      "use" : "out",
      "min" : 1,
      "max" : "1",
      "type" : "string"
    }]
  }]
}