-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* consent to treatment guidance * install graphviz in pipeline * paragraph formatting * Update consent-to-treatment.md Plantuml activity diagram example * corrections in guidance, added to example * corrections in guidance, added to example * corrections in guidance, added to example * Delete ig-template/package/content/assets/js/.index.json * delete .index.db * update usecase assocation line --------- Co-authored-by: Declan Kieran <[email protected]>
- Loading branch information
1 parent
aafe1ac
commit d6c0713
Showing
17 changed files
with
2,449 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,759 changes: 1,759 additions & 0 deletions
1,759
ig-template/package/content/assets/js/mermaid.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_149wjti" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="16.4.0"> | ||
<bpmn:collaboration id="Collaboration_0q56fut"> | ||
<bpmn:participant id="Participant_18xshys" name="Consent to Treatment" processRef="Process_0q168hd" /> | ||
<bpmn:textAnnotation id="TextAnnotation_009927h"> | ||
<bpmn:text>Has capacity to consent?</bpmn:text> | ||
</bpmn:textAnnotation> | ||
<bpmn:association id="Association_171p978" associationDirection="None" sourceRef="Gateway_1ykpua9" targetRef="TextAnnotation_009927h" /> | ||
</bpmn:collaboration> | ||
<bpmn:process id="Process_0q168hd"> | ||
<bpmn:laneSet id="LaneSet_1s0cwuu"> | ||
<bpmn:lane id="Lane_1qewygr" name="API" /> | ||
<bpmn:lane id="Lane_0vot896" name="Patient Advocate"> | ||
<bpmn:flowNodeRef>Activity_1s5y9xm</bpmn:flowNodeRef> | ||
</bpmn:lane> | ||
<bpmn:lane id="Lane_0s229l6" name="Patient"> | ||
<bpmn:flowNodeRef>Gateway_1ykpua9</bpmn:flowNodeRef> | ||
<bpmn:flowNodeRef>Activity_1lxn6f7</bpmn:flowNodeRef> | ||
</bpmn:lane> | ||
<bpmn:lane id="Lane_0jp784q" name="Practitioner"> | ||
<bpmn:flowNodeRef>Event_03tz7z4</bpmn:flowNodeRef> | ||
<bpmn:flowNodeRef>Activity_00yhqnr</bpmn:flowNodeRef> | ||
<bpmn:flowNodeRef>Activity_05dlhv6</bpmn:flowNodeRef> | ||
</bpmn:lane> | ||
</bpmn:laneSet> | ||
<bpmn:startEvent id="Event_03tz7z4"> | ||
<bpmn:outgoing>Flow_0ws129z</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:task id="Activity_00yhqnr" name="Request Consent"> | ||
<bpmn:incoming>Flow_0ws129z</bpmn:incoming> | ||
<bpmn:outgoing>Flow_1ias2ec</bpmn:outgoing> | ||
</bpmn:task> | ||
<bpmn:exclusiveGateway id="Gateway_1ykpua9"> | ||
<bpmn:incoming>Flow_1ias2ec</bpmn:incoming> | ||
<bpmn:outgoing>Flow_0c4r6vy</bpmn:outgoing> | ||
</bpmn:exclusiveGateway> | ||
<bpmn:task id="Activity_05dlhv6" name="Record Consent" /> | ||
<bpmn:task id="Activity_1lxn6f7" name="Provide Consent"> | ||
<bpmn:incoming>Flow_0c4r6vy</bpmn:incoming> | ||
</bpmn:task> | ||
<bpmn:task id="Activity_1s5y9xm" name="Provide Consent" /> | ||
<bpmn:sequenceFlow id="Flow_0ws129z" sourceRef="Event_03tz7z4" targetRef="Activity_00yhqnr" /> | ||
<bpmn:sequenceFlow id="Flow_1ias2ec" sourceRef="Activity_00yhqnr" targetRef="Gateway_1ykpua9" /> | ||
<bpmn:sequenceFlow id="Flow_0c4r6vy" name="Yes" sourceRef="Gateway_1ykpua9" targetRef="Activity_1lxn6f7" /> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0q56fut"> | ||
<bpmndi:BPMNShape id="Participant_18xshys_di" bpmnElement="Participant_18xshys" isHorizontal="true"> | ||
<dc:Bounds x="160" y="62" width="1370" height="998" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Lane_1qewygr_di" bpmnElement="Lane_1qewygr" isHorizontal="true"> | ||
<dc:Bounds x="190" y="810" width="1340" height="250" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Lane_0vot896_di" bpmnElement="Lane_0vot896" isHorizontal="true"> | ||
<dc:Bounds x="190" y="560" width="1340" height="250" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Lane_0s229l6_di" bpmnElement="Lane_0s229l6" isHorizontal="true"> | ||
<dc:Bounds x="190" y="312" width="1340" height="248" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Lane_0jp784q_di" bpmnElement="Lane_0jp784q" isHorizontal="true"> | ||
<dc:Bounds x="190" y="62" width="1340" height="250" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_03tz7z4_di" bpmnElement="Event_03tz7z4"> | ||
<dc:Bounds x="262" y="172" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_00yhqnr_di" bpmnElement="Activity_00yhqnr"> | ||
<dc:Bounds x="420" y="150" width="100" height="80" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Gateway_1ykpua9_di" bpmnElement="Gateway_1ykpua9" isMarkerVisible="true"> | ||
<dc:Bounds x="445" y="395" width="50" height="50" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_05dlhv6_di" bpmnElement="Activity_05dlhv6"> | ||
<dc:Bounds x="900" y="150" width="100" height="80" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_1lxn6f7_di" bpmnElement="Activity_1lxn6f7"> | ||
<dc:Bounds x="630" y="380" width="100" height="80" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_1s5y9xm_di" bpmnElement="Activity_1s5y9xm"> | ||
<dc:Bounds x="420" y="640" width="100" height="80" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="Flow_1ias2ec_di" bpmnElement="Flow_1ias2ec"> | ||
<di:waypoint x="470" y="230" /> | ||
<di:waypoint x="470" y="395" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_0ws129z_di" bpmnElement="Flow_0ws129z"> | ||
<di:waypoint x="298" y="190" /> | ||
<di:waypoint x="420" y="190" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_0c4r6vy_di" bpmnElement="Flow_0c4r6vy"> | ||
<di:waypoint x="495" y="420" /> | ||
<di:waypoint x="630" y="420" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="554" y="402" width="18" height="14" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Association_171p978_di" bpmnElement="Association_171p978"> | ||
<di:waypoint x="450" y="415" /> | ||
<di:waypoint x="370" y="397" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNShape id="TextAnnotation_009927h_di" bpmnElement="TextAnnotation_009927h"> | ||
<dc:Bounds x="270" y="370" width="99.99998764470521" height="40.48582995951417" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Instance: ConsentExample1 | ||
InstanceOf: Consent | ||
Usage: #example | ||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-ConsentCreateSummary" | ||
* extension[=].valueAnnotation.text = "Example of consent create summary extension text" | ||
* extension[+].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-ConsentRemoveSummary" | ||
* extension[=].valueAnnotation.text = "Example of consent remove summary extension text" | ||
* status = #active | ||
* scope = $consentscope#patient-privacy | ||
* category = RA-FlagCategory#NRAF "National Reasonable Adjustments Flag" | ||
* provision.purpose = $sct#370856009 "Limiting access to confidential patient information" | ||
* patient = Reference(Patient/PatientExample1) | ||
* policy.authority = "https://www.gov.uk/" | ||
* policy.uri = "https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/535024/data-security-review.pdf" | ||
* policyRule = RA-ProxyRole#001 | ||
* contained.resourceType = "Provenance" | ||
* contained.id = "4c75ce1f-1ad7-4391-b5f6-104754c7e904" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@startuml | ||
|
||
|<font color=gray><b><u>Practioner</u></b></font>| | ||
start | ||
:Request consent; | ||
|
||
|#LightGray|<font color=gray><b><u>Patient</u></b></font>| | ||
if (Capacity to\n consent?) is (Yes) then | ||
:Provide consent; | ||
else (No) | ||
|
||
|<font color=gray><b><u>Patient Advocate</u></b></font>| | ||
:Provide consent; | ||
endif | ||
|
||
|<font color=gray><b><u>Practioner</u></b></font>| | ||
if (Consent given) is (Yes) then | ||
:Record/confirm\n consent given; | ||
else (No) | ||
: Revoke consent\nand previous records; | ||
endif | ||
|
||
|#LightGray|<font color=gray><b><u>API</u></b></font>| | ||
:Update API; | ||
note right | ||
There are vaious | ||
ways this can be | ||
acheived and | ||
examples are | ||
provided | ||
throughout | ||
end note | ||
|
||
|<font color=gray><b><u>Practioner</u></b></font>| | ||
:Confirmation; | ||
stop | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@startuml | ||
|
||
skinparam actorStyle hollow | ||
|
||
actor "Practitioner" as pra | ||
actor "Patient" as pat | ||
actor "Patient Advocate" as pad | ||
participant "FHIR API" as api | ||
entity "Consent" as con | ||
entity "Master Flag" as mas | ||
entity "Adjustment Flag" as adj | ||
entity "Condition" as cod | ||
|
||
alt Patient provides consent | ||
pra -> pat : Request consent | ||
pra <-- pat : Provide consent | ||
else Advocate provides consent | ||
pra -> pad : Request Consent | ||
pra <-- pad : Provide consent | ||
end | ||
|
||
alt Consent has been given | ||
pra -> api : Record consent given | ||
api -> con : Create/update resource | ||
con -> con : Validate | ||
api <-- con : return | ||
pra <-- api : OperationOutcome | ||
else Consent has not been given/been revoked | ||
pra -> api : Record consent was not given | ||
api -> con : Delete adjustment consent | ||
api <-- con : return | ||
api -> mas : Delete adjustment master flag | ||
api <-- mas : return | ||
api -> adj : Delete adjustment flag(s) | ||
api <-- adj : return | ||
api -> cod : Delete condition flag(s) | ||
api <-- cod : return | ||
pra <-- api : OperationOutcome | ||
end | ||
|
||
@enduml |
Oops, something went wrong.