{
  "resourceType" : "StructureMap",
  "id" : "flc-bookappointmentresponse",
  "meta" : {
    "profile" : ["http://canonical.fhir.link/flc/base/StructureDefinition/flc-structuremap"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap flc-bookappointmentresponse</b></p><a name=\"flc-bookappointmentresponse\"> </a><a name=\"hcflc-bookappointmentresponse\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"http://canonical.fhir.link/flc/base/0.2.3/StructureDefinition-flc-structuremap.html\">FLCStructureMap</a></p></div><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://canonical.fhir.link/servicewell/frenda-wof-connect-flc/StructureMap/flc-bookappointmentresponse<span style=\"color: navy\">&quot; = &quot;</span>flc-bookappointmentresponse<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Structure Map for transforming Frenda BookAppointmentResponse to the IHE Scheduled Appointment Bundle.</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-book-appointment-response.html\" title=\"BookAppointmentResponse (Extract Model)\">https://canonical.fhir.link/servicewell/frenda-wof-connect-flc/StructureDefinition/book-appointment-response</a><span style=\"color: navy\">&quot; </span><b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"https://profiles.ihe.net/ITI/Scheduling/1.0.0/StructureDefinition-ihe-sched-avail-bundle.html\" title=\"IHE ITI Scheduling Bundle Profile\">https://profiles.ihe.net/ITI/Scheduling/StructureDefinition/ihe-sched-avail-bundle</a><span style=\"color: navy\">&quot; </span><b>as </b><b>target</b>\r\n\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">Frenda BookingResponse to IHE Scheduled Appointment Bundle (searchset Bundle with booked Appointment).</span>\r\n<b>group </b>LiquidTransform<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">AppointmentBookOpResult</span><span style=\"color: navy\"> : </span>FrendaAPIBookResponse<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  source<span style=\"color: navy\"> : </span>Message<b> as </b><span style=\"color: maroon\">msg</span><span style=\"color: navy\"><b> -&gt; </b></span>Destination <i>&quot;liquid&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "https://canonical.fhir.link/servicewell/frenda-wof-connect-flc/StructureMap/flc-bookappointmentresponse",
  "version" : "0.1.1",
  "name" : "flc-bookappointmentresponse",
  "title" : "FLC BookAppointmentResponse",
  "status" : "draft",
  "experimental" : true,
  "date" : "2025-11-18",
  "publisher" : "Service Well AB",
  "contact" : [{
    "name" : "Service Well AB",
    "telecom" : [{
      "system" : "url",
      "value" : "https://servicewell.se"
    }]
  }],
  "description" : "Structure Map for transforming Frenda BookAppointmentResponse to the IHE Scheduled Appointment Bundle.",
  "structure" : [{
    "url" : "https://canonical.fhir.link/servicewell/frenda-wof-connect-flc/StructureDefinition/book-appointment-response",
    "mode" : "source"
  },
  {
    "url" : "https://profiles.ihe.net/ITI/Scheduling/StructureDefinition/ihe-sched-avail-bundle",
    "mode" : "target"
  }],
  "group" : [{
    "name" : "LiquidTransform",
    "typeMode" : "none",
    "documentation" : "Frenda BookingResponse to IHE Scheduled Appointment Bundle (searchset Bundle with booked Appointment).",
    "input" : [{
      "name" : "AppointmentBookOpResult",
      "type" : "FrendaAPIBookResponse",
      "mode" : "source"
    }],
    "rule" : [{
      "name" : "liquid",
      "source" : [{
        "context" : "source",
        "type" : "Message",
        "variable" : "msg"
      }],
      "target" : [{
        "extension" : [{
          "extension" : [{
            "url" : "flcPackage",
            "valueString" : "servicewell.se.fhir.wof-connect-frenda"
          },
          {
            "url" : "flcPackageVersion",
            "valueString" : "0.1.1"
          },
          {
            "url" : "flcLibrary",
            "valueCanonical" : "https://canonical.fhir.link/servicewell/frenda-wof-connect-flc/Library/FLCLiquidTemplates"
          },
          {
            "url" : "liquidTemplate",
            "valueString" : "AppointmentBookOpResult.liquid"
          }],
          "url" : "http://canonical.fhir.link/flc/base/StructureDefinition/fhir-liquid-map"
        }],
        "context" : "Destination",
        "contextType" : "variable",
        "parameter" : [{
          "valueString" : "liquid"
        }]
      }]
    }]
  }]
}