{
  "resourceType" : "OperationDefinition",
  "id" : "-s-transform-to-QRD",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition -s-transform-to-QRD</b></p><a name=\"-s-transform-to-QRD\"> </a><a name=\"hc-s-transform-to-QRD\"> </a><p>URL: [base]/$transform-to-QRD</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>bundle</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>A FHIR Bundle containing the FHIR Composition resource, referencing a FHIR QuestionnaireResponse, a FHIR Questionnaire and a FHIR DocumentReference containing the QFDD XML file (base64 encoded).</p>\n</div></td></tr><tr><td>OUT</td><td>documentReference</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a></td><td/><td/></tr></table></div>"
  },
  "url" : "http://ehealth.sundhed.dk/fhir/OperationDefinition/-s-transform-to-QRD",
  "version" : "8.0.0",
  "name" : "transform-to-QRD",
  "title" : "Transform to QRD",
  "status" : "active",
  "kind" : "operation",
  "date" : "2026-03-04T07:39:00+00:00",
  "publisher" : "Den telemedicinske infrastruktur (eHealth Infrastructure)",
  "contact" : [{
    "name" : "Den telemedicinske infrastruktur (eHealth Infrastructure)",
    "telecom" : [{
      "system" : "url",
      "value" : "http://ehealth.sundhed.dk"
    }]
  }],
  "description" : "Transforms a FHIR QuestionnaireResponse (ehealth-questionnaireresponse profile) resource to a DK-HL7 Questionnaire Response Document (QRD) XML document. The input FHIR Bundle contains FHIR Composition (ehealth-composition profile) resource referencing a FHIR QuestionnaireResponse resource. a FHIR Questionnaire resource. The bundle must also contain a FHIR DocumentReference containing a QFDD xml file (base64 encoded)The returned FHIR DocumentReference contains the QRD XML document adhering to the DK-HL7 Questionnaire Response Document profile.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "DK",
      "display" : "Denmark"
    }]
  }],
  "affectsState" : false,
  "code" : "transform-to-QRD",
  "system" : true,
  "type" : false,
  "instance" : false,
  "parameter" : [{
    "name" : "bundle",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "A FHIR Bundle containing the FHIR Composition resource, referencing a FHIR QuestionnaireResponse, a FHIR Questionnaire and a FHIR DocumentReference containing the QFDD XML file (base64 encoded).",
    "type" : "Bundle"
  },
  {
    "name" : "documentReference",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "DocumentReference"
  }]
}