<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>medical guidelines that integrate with FHIR-RDF</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Fraunhofer FOKUS and Freie Universitaet Berlin</institution>
          ,
          <addr-line>Berlin, DE</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Legal Innovation Lab Wales, Swansea University</institution>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Visuapps GmbH</institution>
          ,
          <addr-line>Vienna, AT</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>Medical guidelines are a core concept within evidence-based medicine and provide information on how patient treatment should be applied. The combination of medical guidelines, distributed Fast Healthcare Interoperability Resources (FHIR) resources describing available patient data, and related ontologies representing medical terminologies is substantial for an automated clinical decision support system to provide the most relevant information for the patient and the physician. In this work, we explore the integration of Business Process Modeling Notation (BPMN), FHIR, and Semantic Web technologies to achieve decision support for the medical use case. By using FHIR-RDF representation and SPARQL, we provide relevant information for the business process execution engine, which takes decisions and triggers feeds of new observations to an FHIR store for creating new patient-related data. The business process model describes which information is relevant for decision tasks. By extending the process engine's code, we were able to separate the high-level workflow from the technical tasks, such as querying for data or sending notifications. The application of medical guidelines is critical for patient care while technologies are emerging, and lots of information is available at different locations. With the relatively new standard FHIR, we can use discrete data, and by storing these data in RDF, we integrate with already existing medical ontologies that allow further inferences to process information about the patients.</p>
      </abstract>
      <kwd-group>
        <kwd>BPMN</kwd>
        <kwd>FHIR</kwd>
        <kwd>RDF</kwd>
        <kwd>Medical guidelines</kwd>
        <kwd>Clinical decision support</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Medical guidelines are essential for applying evidence-based medicine to patients. Guidelines
are usually available as textual descriptions of medical treatment recommendations for medical
personnel to ensure appropriate care for particular illnesses or injuries. These textual
descriptions sometimes contain workflow diagrams as explanations for the physician who exerts these
guidelines on patients, but sometimes these workflows are only described in natural language.</p>
      <p>
        The well-known modeling language “Business Process Modeling Notation” (BPMN) is widely
used as a graphical representation of medical guideline workflows and other processes in the
healthcare domain [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
Sciences
∗Corresponding author.
      </p>
      <p>
        On the other hand, Fast Healthcare Interoperability Resources (FHIR) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is a relatively new
standard that fosters healthcare interoperability and provides a data format to store and provide
patient medical information. Furthermore, it defines the exchange protocols among different
participant systems. FHIR might be encoded in RDF format and thus queried via SPARQL1.
      </p>
      <p>From a system-architectural perspective, these FHIR resources can be distributed in multiple
physical locations. Therefore, collection and pre-processing of data is usually necessary.</p>
      <p>The collected data is stored in a RDF triplestore as RDF data graph that grows over time since
different patient monitoring devices are inserting data regularly. This dynamic triplestore is an
integral component of our proposed solution because in production used FHIR stores are not
capable of providing SPARQL endpoints.</p>
      <p>The BPMN model, which provides a process workflow of a medical guideline, and the
FHIRData, which is the input for the guideline’s process execution, need to interact in a clinical
decision support system.</p>
      <p>Decoupling the medical guideline from the medical data allows to better organize the (joint)
work of all actors involved in a healthcare process. Imagine the physician has the expertise
to focus on the clinically relevant aspects, and by using a simple interface, he can define
the workflow. At the same time, technical experts can resolve the challenge of medical data
integration for a BPMN workflow execution engine. Medical treatment can take advantage of the
proposed model: by separating the concerns of medical content and medical data representations
since each involved actor can focus on their respective tasks.</p>
      <p>Note, this paper is not addressing the automatic translation of medical guidelines. In this
paper, we show how the medical objective can be separated from the technical challenges
of data acquisition and data integration by using FHIR and BPMN standards. That is, we
contribute with a technical proposal for separation of concerns. The further paper is structured
as follows: section 2 describes existing approaches using medical guidelines; section 3 presents
our approach to express medical guidelines as BPMN models and their execution. Section 4
describes our results that we discuss in section 5, where we finally conclude.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        Editors of medical guidelines document the current findings of medical studies and
recommendations in natural language and sometimes include graphical representations of workflows.
These workflows need a representation in a computer-executable form that may be used in
practical applications, such as medical decision support systems. In [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], BPMN was used for
modeling and presenting the clinical pathway in the form of a workflow. Their system used
an Enterprise Service Bus to integrate an Electronic Health Record (EHR) and alerts when a
certain pulmonary disease diagnosis occurred.
      </p>
      <p>
        BPMN is an OMG standard for business process modeling in industry and economy, with the
benefits of generating a graphical representation of complex processes and being precise enough
to be transformed into software applications executing such processes2. Medical guidelines
can be integrated into such a process model [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Furthermore, BPMN diagrams can be used for
      </p>
      <sec id="sec-2-1">
        <title>1https://www.w3.org/TR/rdf-sparql-query/</title>
        <p>2https://www.omg.org/spec/BPMN/2.0/About-BPMN/
representing the control flow of processes, relevant events, and the corresponding sequence
flows. However, this paper only describes general best practices for using BPMN in the medical
domain, leaving out the technical integration with patient medical data. It turns out that current
Hospital Information Systems (HIS)3 are using workflows, but more for general purposes during
a patient hospital period than for the execution of medical guidelines.</p>
        <p>
          There are various existing models for a formal representation and execution of medical
guidelines like Asbru [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], EON[
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], GLIF3[
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] and ProForma[
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. However, these models are very
specialized for the medical domain and execution environments, and the complexity of their
institutional adoptions seems to be complicated. These adoptions are highly dependent on the
patient’s individual record, which is not using standards across different hospitals. So for each
hospital, another integration needs to be done to apply the guideline to each individual patient.
Furthermore, cross-community access to patient data is not foreseen.
        </p>
        <p>
          Another approach using Activiti4, which is a BPMN process engine for Java, was used to call
Arden-Syntax-MLM (Medical Logic Modules)5 over REST communication[
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. This solution eases
complex clinical guidelines by splitting them into the evidence-based general workflow layer
and a specific layer defined by particular institutions. Although this approach simplifies complex
clinical guidelines by dividing them into the general workflow and an institute-specific medical
decision-making layer, the Arden-Syntax is very explicit to the medical domain. Technical
integration of current clinical decision support systems in existing, heterogeneous health
information systems turns out complex due to the different data formats used[
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. There exists a
commercial implementation of Arden syntax that provides different implementations to multiple
data sources, also integrating with FHIR or openEHR [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]. However, this is not defined in the
Arden syntax standard.
        </p>
        <p>
          Beckmann et al. [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] describe a particular medical guideline, using Camunda modeler to
create the BPMN and also using patient FHIR-Resources for making decisions. Nevertheless,
the link to already existing medical knowledge (as ontologies) is missing, but it is essential to
ensure the correct selection of FHIR resources for the particular use case.
        </p>
        <p>
          In earlier research [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], we used Shape Constraint Language (SHACL)6 to express a simple
medical guideline that existed as sequences and exclusive choices. The issue is that by using
SHACL, we missed the option of the arbitrary circle workflow pattern7, that would help for
expressing recurring tasks that are widely done in different medical guidelines.
        </p>
        <p>In summary, different approaches for specific purposes exist to use BPMN in the medical
domain. The BPMN model is used for representation to clarify the medical guideline. However,
the patient’s medical data integration from an EHR is either proprietary or not addressed.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Our approach: combining BPMN and FHIR-RDF</title>
      <sec id="sec-3-1">
        <title>3e.g.,https://www.cgm.com/aut_de/produkte/krankenhaus/cgm-clinical/workflowsteuerung.html</title>
        <p>4https://github.com/Activiti/Activiti
5https://www.hl7.org/implement/standards/product_brief.cfm?product_id=372
6https://www.w3.org/TR/shacl
7http://www.workflowpatterns.com/patterns/control/structural/wcp10.php
Engine” (DMSE), which provides RESTful services to receive client requests for triggering the
execution of a medical guideline. The DMSE loads and executes a BPMN model, which models
a medical guideline. The DMSE can also retrieve patient-related information from multiple
distributed FHIR stores and convert it to FHIR-RDF. The FHIR-RDF data is temporarily stored
in a local (DMSE-Service) RDF triplestore that may be queried via SPARQL.</p>
        <p>For the implementation of the BPMN execution engine, we are using Camunda. Camunda
is an open-source platform for Business Process Management and provides a “Modeler” (for
creation of BPMN models) and an “Execution engine” (for the automated processing of BPMN
models). Furthermore, Camunda allows the association of the BPMN tasks with specialized
Java classes that can be implemented and injected into the application’s runtime.</p>
        <p>The DMSE can access patient-relevant information from (JSON-)FHIR resources during the
execution of a medical guideline.</p>
        <p>For example, suppose the BPMN suggests applying medication for treatment. In that case,
this act needs documentation for two main reasons: the legal perspective and the need to further
process the BPMN with new information about the patient. The need for insertion during the
runtime of a medical guideline does not only apply to medication administration; it is also
highly relevant for observation resources (e.g., heart rate, blood pressure) to check in later
repetitions in the execution path if the patient’s status changes.</p>
        <sec id="sec-3-1-1">
          <title>3.1. Case study</title>
          <p>
            In this paper, we exemplify our model on a particular medical guideline: the “Management of
asthma in adults in primary care” [
            <xref ref-type="bibr" rid="ref13">13</xref>
            ]. This guideline takes care of both the assessment and the
treatment. The assessment part evaluates based on clinical features (e.g., speaking up, being
confused, poor respiration effort) as well as clinical parameters (e.g., respiratory rate, pulse rate,
oxygen saturation) the severity of the acute exacerbation of asthma. Depending on the severity,
the treatment contains different medications to be applied.
          </p>
          <p>The severity status causes, depending on local prerequisites for medical treatment, informing
specialists for taking care of the medical case. The guideline mentions reevaluating the patient’s
status after drug application and even during transport from the emergency scene to the hospital.</p>
          <p>We modeled the BPMN model for the guideline, as seen in Figure 28. The initial assessment
8https://github.com/gkober/MedicalGuidelineCamunda/blob/main/Figure_2_BPMN_reduced_Asthma_care.png
takes all the available inputs, calculates, and delivers them to the BPMN gateway for the decision
about which severity status to choose (“Mild to moderate”, “Severe”, or “Life-Threatening”). The
severity check is done since, during runtime, an alert is generated (to call for an emergency
physician), or a notification to the emergency control center that no additional resources are
needed is sent. The specific alert is defined in the BPMN model. This definition includes the
facts of “participants to alert” and the criteria that need to match for raising an alert.</p>
          <p>Subsequently, the management (treatment) process starts with recommendations on which
medication to apply. After the real-life application of drugs, the execution of the BPMN process
continues and decides on the transport option. The severity check starts again in case the
patient is not stable enough for transportation.</p>
          <p>To have patient-related medical information available during the execution time of the BPMN
model, we added a technical task at the beginning of the process: “Calling FHIR servers and
generating RDF”. This task collects all available patient-related observations and prepares the
data for the initial and continuous assessment. Furthermore, these values are propagated to the
subsequent tasks occurring during the workflow, allowing them to be accessed at any time.</p>
          <p>Another essential remark for our case is that we assume that IoT devices (ECG, pulse oximeter,
etc.) capture (new) medical measurements and delivers them as FHIR resources to an FHIR store.
We simulate this IoT device by an integrated handler in the code that generates measurements
and submits them as FHIR-observation-resources.</p>
        </sec>
        <sec id="sec-3-1-2">
          <title>3.2. Expressing FHIR as an ontology for decisions</title>
          <p>
            The FHIR specification defines multiple representations for FHIR resources: JSON, XML, and
RDF/Turtle [
            <xref ref-type="bibr" rid="ref14">14</xref>
            ]. The FHIR-RDF representation allows semantic linkage and integration with
other available RDF data [
            <xref ref-type="bibr" rid="ref15">15</xref>
            ]. Furthermore, the FHIR-RDF representation allows rich queries
that are not doable using FHIR-JSON. This means we can link the FHIR-RDF data with external
ontologies like SNOMED-CT (Systematized Nomenclature of Medicine Clinical Terms), or
LOINC (Logical Observation Identifiers Names and Codes). Moreover, in case a patient was
in multiple hospitals and data is persisted in FHIR stores, these different, distributed FHIR
stores contain patient-specific data. The FHIR standard does not allow querying all existing
patient data in one single query. The RDF web data representation, having defined URIs, allows
distributed access and queries, including other (external) resources.
          </p>
          <p>
            Contained in the FHIR resources is a reference to the type that describes what was observed.
This reference description is highly relevant for understanding what kind of observation was
made [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ]. This description has a terminology binding to LOINC codes. For example, the
meaning for “heart rate” is coded in LOINC: 8867-49. This coding allows sharing the same
meaning for the type of observation among everyone using the data set. These codes remove
ambiguity as they state clearly the meaning of the specific values within the FHIR resource.
          </p>
          <p>
            Another important fact is that FHIR also delivers an ontology that provides formal definitions
for relationships in the RDF format. This allows using the FHIR ontology and other ontologies,
like SNOMED-CT, to submit SPARQL queries or perform reasoning tasks [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ].
          </p>
          <p>
            In [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ] a smart-eco-system that monitors the patient’s health status using medical wearables,
intelligent agents as well as complex event processing. This paper describes also the use of
reasoning, which is not yet utilized in our solution. However, the data generated and persisted
during runtime is not using FHIR or other medical standard formats.
          </p>
          <p>With FHIR-RDF in place, we have the option to express that a patient has a specific illness
and make use of already existing medical ontologies10.</p>
          <p>The use of SPARQL allows the BPMN executor to instantiate the needed variables with data
and decide on the path. In our implementation, we use the “SELECT form where” clauses and
their bindings are returned. We are formulating a specific SPARQL query to receive not all
patient observations but only the needed ones relevant for the BPMN task to decide. Since
the decision point in the BPMN needs a particular value, we are fetching it by expressing a
SPARQL-query as shown in listing 1. In FHIR a so-called “Bundle” is a collection of FHIR
resources (e.g. Observations) that can have an independent existence11. In our case, this Bundle
contains all observations of a specific patient and is then converted to an FHIR-RDF structure.</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Listing 1: SPARQL query for Observation</title>
        <p>PREFIX fhir:&lt;http://hl7.org/fhir/&gt;
SELECT ?value
WHERE {?root fhir:Bundle.entry ?resource.</p>
        <p>?resource fhir:Bundle.entry.resource/fhir:Observation.code/fhir:CodeableConcept.</p>
        <p>coding/fhir:Coding.code/fhir:value ?code.
?value ^fhir:value/^fhir:Quantity.value/^fhir:Observation.valueQuantity/^fhir:Bundle
.entry.resource ?resource.</p>
        <p>FILTER(?code=\”+code+\”).}</p>
        <sec id="sec-3-2-1">
          <title>3.3. The dynamic aspect during the execution</title>
          <p>Medical guidelines describe best practices, the values to evaluate, and which treatments to apply.
In conjunction with concrete patient data, the interpretation of facts and the application of,
e.g., medication applies. The values allow the BPMN execution engine to decide and trigger
subsequent tasks. However, the medical guideline is usually not a simple sequence, but there are,
9https://loinc.org/8867-4/
10https://bioportal.bioontology.org/
11https://hl7.org/fhir/bundle.html
among others, choices, repetitions, and merges happening. For example, when a patient receives
medication, this medication impacts the patient’s health and influences the observations taken.
So, the measurements from a first (initial) assessment might not be correct at a later time (after
providing treatment), so we need to take care of the latest observations made to ensure correct
decisions during guideline execution.</p>
          <p>In our implementation of the use case, we have to submit medication to impact the patient’s
observation (the execution of the BPMN has to wait for the medication to take effect). After the
waiting time, new observations are captured and taken into account in the upcoming evaluation
phase by re-executing the SPARQL queries. The result of these queries might lead to other
decisions, which depend on the defined criteria in the BPMN, during the entire process and
other outcomes of the guideline execution.</p>
          <p>The injection of Java classes to Camunda, the BPM execution engine, allows us to implement
handlers to create JSON-FHIR-Resources, and submit them to an FHIR store. We are using JSON
for data exchange, in the direction from the DMSE to a remote FHIR store.</p>
          <p>From a technical perspective, the submission has two advantages: firstly, the FHIR resource is
usable for other applications only relying on JSON objects, and secondly, it persists in a reliable
FHIR store and does not need to be held permanently in the DMSE. Since our application only
holds data temporarily, we choose to re-query the entire data. This re-query is necessary since
other IoT devices could have added new information to the FHIR store, that is relevant to the
guideline execution process - therefore we need to regenerate the RDF structure.</p>
          <p>If the DMSE acts as a proxy for FHIR-JSON resources, these re-queries would not be necessary
since the DMSE can capture the incoming data and apply it to medical guidelines.</p>
          <p>The code for execution and the synthetic datasets are available on GitHub (https://github.
com/gkober/MedicalGuidelineCamunda)and this project contains the classes that extend the
capabilities of Camunda, as well as the initiating FHIR Observation samples. Also, the BPMN of
the implemented medical guideline is provided.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Evaluation and Results</title>
      <p>In our work, we managed to separate the content of the medical perspective and the technical
challenges from each other. The BPMN model defines the flow, decisions, and specialized
execution classes. These execution classes manage the computer-science-relevant aspects, like
how the queries to FHIR stores, transformations to FHIR-RDF are done, and even the executed
SPARQL queries are abstracted from the user’s perspective.</p>
      <p>The BPMN allows us to express the medical guideline as workflow patterns: we have seen
the following patterns in the current medical guideline: Sequence, Exclusive Choice (supported
by X-OR-Gateway), Simple Merge (represented as X-OR-Join gateway), and Arbitrary Cycles.</p>
      <p>For evaluating the software solution and the BPMN, we created different samples of synthetic
datasets that simulate a medical emergency and the appropriate patient information in the local
FHIR store. The combination of these datasets resolve to the different types of outcomes for
the decisions to be taken: a mild-to-moderate illness, a severe illness, and a life-threatening
illness. The acceptance of the guideline execution was done by manual validation. The synthetic
datasets are generated as FHIR-resources, containing the relevant aspects for a FHIR-observation
(e.g., code, subject, valueCodeableConcept). The creation was based on the possible values for
the medical guideline. In the beginning we created randomly FHIR-resources for 25 patients. As
initial tests failed, we had to align the samples, so that from a medical perspective the content
of the FHIR-resources was coherent and valid.</p>
      <p>When using these generated datasets, a situation occurred that data was not applicable for
the BPMN to find a decision. This was the case when patient data were not clearly separated
but represented a mixture of outcome options for the decision point. The BPMN execution
engine can not take care of such a combined condition.</p>
      <p>Another finding during the execution of the BPMN and the integration of the different FHIR
data samples was, that we noticed that errors might occur if the modeler of the BPMN is not
precise in the definition. The ambiguous definition of the X-OR-gateways led to the problem
that the execution engine could not decide, and the entire process threw an exception.</p>
      <p>Finally, if the BPMN and the FHIR data are available in the correct format, the test solutions
provided the expected results in terms of correctness and completeness.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Discussion &amp; Conclusion</title>
      <p>The use of medical guidelines is highly relevant for patients to receive evidence-based medical
treatment. Since patients are approaching different hospital facilities, their individual data
is stored in multiple locations. A treating physician faces the challenge of taking care of the
available data and also keeping track of the current medical state of the art. Therefore we
propose a framework that applies current medical guidelines to accessible clinical (FHIR) data
by addressing the technical capabilities of Semantic Web technologies.</p>
      <p>This paper shows a possible approach to implement and assess a medical guideline in a formal
executable workflow. The approach presented here made use of multiple Semantic Web sources
while modeling a clinical guideline as BPMN workflows. By using FHIR, it was possible to
include LOINC-codes, which define the exact meaning of the FHIR resource’s values.</p>
      <p>Manual implementation of the medical guideline can lead to inaccurate definitions and
misunderstanding. Formally defined values, e.g., LOINC codes, can reduce the risk of ambiguity.</p>
      <p>FHIR is an HL7 specification that defines the way of exchanging and representing data
in the medical domain. In our use case, we are only using FHIR-Observations and
FHIRMedicationAdministration resources. In particular, we use different defined representation
formats in the different phases of the execution process. For example, for creating additional
FHIR resources, we use FHIR-JSON, in order to provide additional data that would stem in the
real world from another (IoT-) system. Secondly, the system relies on standard FHIR search
queries (HTTP-GET) for multiple FHIR stores. Thirdly, we combine the fetched content to RDF
and perform SPARQL queries.</p>
      <p>In contrast to RDF and SPARQL, the FHIR specification partly defines specialized HTTP-GET
queries, which allows query parameters for date and codes, as well as sorting and counting. The
behavior of such an FHIR-HTTP-Get query is heavily dependent on the used implementation
of the FHIR specification and the configured capabilities of the used FHIR servers. Furthermore,
the result of such queries is an FHIR resource (http://hl7.org/fhir/search.html) and can not be
used efficiently for a decision. A particular value must be extracted for further processing in
the BPMN execution. So there are many dependencies on the FHIR store to allow such queries,
and if such type of search is not enabled, the entire solution will fail. This means that the
plain FHIR-specified capabilities are causing problems regarding standardized queries, concrete
implementations, and necessary additional processing for data extraction.</p>
      <p>To resolve these insufficiencies, we are using the RDF approach of the FHIR standard. By
using this approach, we can retrieve all patient-relevant data from different FHIR stores and
convert the JSON representation to RDF, including the FHIR ontology. This also allows for
integrating other ontologies like LOINC and using it for reasoning tasks. This ensures that the
meaning of an individual observation is the same for all participants.</p>
      <p>
        For performing queries towards the RDF representation, we use SPARQL queries returning
single values to the BPMN execution for the decision points. We find these values by linking
the value to the code using the SPARQL property path [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] and adding a relation to the date (in
the observation case, the effectiveDateTime). These (SPARQL) standard queries are easier to
understand for a developer than FHIR queries, because these are very specific for the medical
domain; thus SPARQL allows integration of other non-medical resources from the Web.
      </p>
      <p>The medical guideline mentions these textual descriptions that can be found as values in
LOINC codes for the patient survey. The use of LOINC codes increases the understanding and
meaning of values and removes the ambiguity that would disrupt the BPMN execution. We use
these codes as input for the SPARQL query in the patient data and then use them in the BPMN
execution environment to make decisions on the clinical treatment path.</p>
      <p>
        The combination of BPMN, FHIR, and Semantic Web technologies allows for the creation of
a system that backs clinical decision support, ensuring the usage of evidence-based medical
guidelines. In comparison to [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], we extend the usage of BPMN to medical data, and in contrast
to [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], we also incorporate FHIR-data, ontologies, and SPARQL for taking decisions.
      </p>
      <p>
        In the future, it is foreseen to integrate in our framework rules in the RuleML standard [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]
or its extensions (e.g., LegalRuleML). RuleML allows to encode and reason with more complex
constraints, such as obligations and prohibitions, of both medical and legal nature. Representing
these in modal logic has always been problematic from the computational complexity point of
view, while the use of rules offers a simpler and more practical solution [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ].
      </p>
      <p>
        With respect to related contemporary proposals, e.g., [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], the resulting framework will offer a
solution grounded on widely-acknowledged standards (FHIR, RDF, BPMN, and RuleML), which
will facilitate and encourage funnelling of efforts from people with heterogeneous competences
(doctors, pharmaceutical companies, lawyers, etc.), as well as sharing and reuse of the resources.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>Livio Robaldo has been supported by the Legal Innovation Lab Wales operation within Swansea
University’s Hillary Rodham Clinton School of Law. This work has been part-funded by the
European Regional Development Fund through the Welsh Government and by the Deutsche
Forschungsgemeinschaft (DFG, German Research Foundation) project RECOMP (DFG – GZ: PA
1820/5-1)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Pufahl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Zerbato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Weber</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Weber,</surname>
          </string-name>
          <article-title>BPMN in healthcare: Challenges and best practices</article-title>
          ,
          <source>Information Systems</source>
          <volume>107</volume>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>FHIR-RDF</surname>
          </string-name>
          ,
          <source>HL7 FHIR: RDF</source>
          ,
          <year>2022</year>
          . URL: https://www.hl7.org/fhir/rdf.html.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Rodriguez-Loya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Aziz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Chatwin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A Service</given-names>
            <surname>Oriented</surname>
          </string-name>
          <article-title>Approach for Guidelines-based Clinical Decision Support using BPMN</article-title>
          ,
          <source>Studies in Health Technology and Informatics</source>
          <volume>205</volume>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Balser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Duelli</surname>
          </string-name>
          , W. Reif,
          <article-title>Formal semantics of Asbru - an overview</article-title>
          ,
          <source>in: Proceedings of the International Conference on Integrated Design and Process Technology</source>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S. W.</given-names>
            <surname>Tu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Musen</surname>
          </string-name>
          ,
          <article-title>Modeling data and knowledge in the EON guideline architecture</article-title>
          ,
          <source>in: MEDINFO</source>
          <year>2001</year>
          , IOS Press,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Peleg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Boxwala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Ogunyemi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Zeng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Lacson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Bernstam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ash</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mork</surname>
          </string-name>
          , et al.,
          <article-title>GLIF3: the evolution of a guideline representation format</article-title>
          .,
          <source>in: Proc. of the AMIA Symposium</source>
          , American Medical Informatics Association,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Fox</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Johns</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rahmanzadeh</surname>
          </string-name>
          ,
          <article-title>Disseminating medical knowledge: the PROforma approach</article-title>
          ,
          <source>Artificial intelligence in medicine 14</source>
          (
          <year>1998</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>J. S. De Bruin</surname>
            ,
            <given-names>K. P.</given-names>
          </string-name>
          <string-name>
            <surname>Adlassnig</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Leitich</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Rappelsberger</surname>
          </string-name>
          ,
          <article-title>Separating Business Logic from Medical Knowledge in Digital Clinical Workflows Using Business Process Model and Notation and Arden Syntax</article-title>
          ,
          <source>Studies in Health Technology and Informatics</source>
          <volume>248</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Samwald</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Fehre</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. De Bruin</surname>
            ,
            <given-names>K.-P.</given-names>
          </string-name>
          <string-name>
            <surname>Adlassnig</surname>
          </string-name>
          ,
          <article-title>The Arden Syntax standard for clinical decision support: Experiences and directions</article-title>
          ,
          <source>Journal of biomedical informatics 45</source>
          (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <article-title>Clinical applications</article-title>
          and Arden Syntax, Accessed:
          <fpage>2022</fpage>
          -11-
          <lpage>01</lpage>
          . URL: https://www.medexter. com/ardensuite/educational_material_part5_
          <article-title>clinical_applications_and_arden_syntax</article-title>
          .pdf.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>C. L.</given-names>
            <surname>Beckmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Lodde</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Livingstone</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Schadendorf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Böckmann</surname>
          </string-name>
          ,
          <article-title>Guideline-Based Context-Sensitive Decision Modeling for Melanoma Patients, Studies in Health Technology and Informatics (</article-title>
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>G.</given-names>
            <surname>Kober</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Robaldo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Paschke</surname>
          </string-name>
          ,
          <article-title>Modeling Medical Guidelines by Prova and SHACL Accessing FHIR/RDF</article-title>
          .,
          <source>in: dHealth</source>
          <year>2022</year>
          , IOS Press,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A. Y. L.</given-names>
            <surname>Ban</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Omar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. Y.</given-names>
            <surname>Chong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Lockman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z. A.</given-names>
            <surname>Ida Zaliza</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. A. H.</given-names>
            <surname>Ali</surname>
          </string-name>
          , etc.,
          <article-title>Management of asthma in adults in primary care</article-title>
          ,
          <source>Malaysian Family Physician</source>
          <volume>13</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>FHIR-Formats</surname>
          </string-name>
          ,
          <source>HL7 FHIR: Formats</source>
          ,
          <year>2022</year>
          . URL: https://www.hl7.org/fhir/formats.html.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>E.</given-names>
            <surname>Prud</surname>
          </string-name>
          <article-title>'hommeaux</article-title>
          , J. Collins,
          <string-name>
            <given-names>D.</given-names>
            <surname>Booth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. J.</given-names>
            <surname>Peterson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. R.</given-names>
            <surname>Solbrig</surname>
          </string-name>
          , G. Jiang,
          <article-title>Development of a fhir rdf data transformation and validation framework and its evaluation</article-title>
          ,
          <source>Journal of Biomedical Informatics</source>
          <volume>117</volume>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>O.</given-names>
            <surname>Bodenreider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Cornet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. J.</given-names>
            <surname>Vreeman</surname>
          </string-name>
          ,
          <article-title>Recent developments in clinical terminologies-snomed ct, loinc, and rxnorm</article-title>
          ,
          <source>Yearbook of medical informatics 27</source>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>S.</given-names>
            <surname>Costantini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Persia</surname>
          </string-name>
          , L. De Lauretis,
          <article-title>An Intelligent Ecosystem to improve Patient Monitoring using Wearables and AI</article-title>
          , CEUR Workshop Proceedings (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>E. V.</given-names>
            <surname>Kostylev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. L.</given-names>
            <surname>Reutter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Romero</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Vrgoč</surname>
          </string-name>
          ,
          <article-title>Sparql with property paths</article-title>
          , in: International Semantic Web Conference, Springer,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>H.</given-names>
            <surname>Boley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Paschke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Shafiq</surname>
          </string-name>
          , RuleML
          <volume>1</volume>
          .
          <article-title>0: The Overarching Specification of Web Rules</article-title>
          , in: M.
          <string-name>
            <surname>Dean</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Rotolo</surname>
          </string-name>
          , S. Tabet (Eds.),
          <source>Semantic Web Rules</source>
          , Springer,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>X.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Robaldo</surname>
          </string-name>
          ,
          <article-title>On the complexity of I/O logic</article-title>
          ,
          <source>Journal of Applied Logic</source>
          <volume>25</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>