Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Process Ping Start v0.7.0

Hauke Hund edited this page Oct 18, 2022 · 1 revision

This page lists Task resources that can be used to start the ping process variants. To send the corresponding Task resources to the DSF FHIR server, the following cURL command could be used:

curl 
--cert client-certificate.pem \
--key client-certificate_private-key.pem \
-H "Accept: application/fhir+xml" -H "Content-Type: application/fhir+xml" \
-d @task.xml \
https://<dsf-fhir-base-url>/fhir/Task

Notice: On Windows you need to remove the \ multi-line command seperators.

The individual parts of the command have the following meaning:

  • task.xml contains the corresponding Task resource from below
  • client-certificate.pem contains your client-certificate
  • client-certificate_private-key.pem contains the private-key belonging to your client-certificate
  • <dsf-fhir-base-url> needs to be replaced with the base url of your DSF FHIR server

Start Ping Process

<Task xmlns="http://hl7.org/fhir">
   <meta>
      <profile value="http://highmed.org/fhir/StructureDefinition/task-start-ping|0.7.0" />
   </meta>
   <instantiatesUri value="http://highmed.org/bpe/Process/ping/0.7.0" />
   <status value="requested" />
   <intent value="order" />
   <!-- Example: <authoredOn value="2022-05-01T15:00:00+02:00" /> -->
   <authoredOn value="<REPLACE-WITH-DATE-TIME>" />
   <requester>
      <type value="Organization" />
      <identifier>
         <system value="http://highmed.org/sid/organization-identifier" />
         <!-- Example: <value value="ukhd.de" /> -->
         <value value="<REPLACE-WITH-YOUR-ORGANIZATION-IDENTIFIER>" />
      </identifier>
   </requester>
   <restriction>
      <recipient>
         <type value="Organization" />
         <identifier>
            <system value="http://highmed.org/sid/organization-identifier" />
            <!-- Example: <value value="ukhd.de" /> -->
            <value value="<REPLACE-WITH-YOUR-ORGANIZATION-IDENTIFIER>" />
         </identifier>
      </recipient>
   </restriction>
   <input>
      <type>
         <coding>
            <system value="http://highmed.org/fhir/CodeSystem/bpmn-message" />
            <code value="message-name" />
         </coding>
      </type>
      <valueString value="startPing" />
   </input>
</Task>

Start Autostart Process

<Task xmlns="http://hl7.org/fhir">
   <meta>
      <profile value="http://highmed.org/fhir/StructureDefinition/task-start-ping-autostart|0.7.0" />
   </meta>
   <instantiatesUri value="http://highmed.org/bpe/Process/pingAutostart/0.7.0" />
   <status value="requested" />
   <intent value="order" />
   <!-- Example: <authoredOn value="2022-05-01T15:00:00+02:00" /> -->
   <authoredOn value="<REPLACE-WITH-DATE-TIME>" />
   <requester>
      <type value="Organization" />
      <identifier>
         <system value="http://highmed.org/sid/organization-identifier" />
         <!-- Example: <value value="ukhd.de" /> -->
         <value value="<REPLACE-WITH-YOUR-ORGANIZATION-IDENTIFIER>" />
      </identifier>
   </requester>
   <restriction>
      <recipient>
         <type value="Organization" />
         <identifier>
            <system value="http://highmed.org/sid/organization-identifier" />
            <!-- Example: <value value="ukhd.de" /> -->
            <value value="<REPLACE-WITH-YOUR-ORGANIZATION-IDENTIFIER>" />
         </identifier>
      </recipient>
   </restriction>
   <input>
      <type>
         <coding>
            <system value="http://highmed.org/fhir/CodeSystem/bpmn-message" />
            <code value="message-name" />
         </coding>
      </type>
      <valueString value="startPingAutostart" />
   </input>
</Task>

Stop Autostart Process

<Task xmlns="http://hl7.org/fhir">
   <meta>
      <profile value="http://highmed.org/fhir/StructureDefinition/task-stop-ping-autostart|0.7.0" />
   </meta>
   <instantiatesUri value="http://highmed.org/bpe/Process/pingAutostart/0.7.0" />
   <status value="requested" />
   <intent value="order" />
   <!-- Example: <authoredOn value="2022-05-01T15:00:00+02:00" /> -->
   <authoredOn value="<REPLACE-WITH-DATE-TIME>" />
   <requester>
      <type value="Organization" />
      <identifier>
         <system value="http://highmed.org/sid/organization-identifier" />
         <!-- Example: <value value="ukhd.de" /> -->
         <value value="<REPLACE-WITH-YOUR-ORGANIZATION-IDENTIFIER>" />
      </identifier>
   </requester>
   <restriction>
      <recipient>
         <type value="Organization" />
         <identifier>
            <system value="http://highmed.org/sid/organization-identifier" />
            <!-- Example: <value value="ukhd.de" /> -->
            <value value="<REPLACE-WITH-YOUR-ORGANIZATION-IDENTIFIER>" />
         </identifier>
      </recipient>
   </restriction>
   <input>
      <type>
         <coding>
            <system value="http://highmed.org/fhir/CodeSystem/bpmn-message" />
            <code value="message-name" />
         </coding>
      </type>
      <valueString value="stopPingAutostart" />
   </input>
</Task>