Skip to content

Commit

Permalink
ra sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusfearnett-nhsdigital committed Jun 11, 2024
1 parent d18493b commit fcbb3c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 41 deletions.
7 changes: 1 addition & 6 deletions input/images-source/add-ra-record-sequence.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ skinparam actorStyle hollow
actor "Practitioner" as pra
actor "Patient" as pat
participant "FHIR API" as api
entity "Consent" as con
entity "Patient Flag" as flg
entity "Adjustment Flag" as adj
entity "Condition" as cod

pra -> pat : Examine patient
pra -> pat : Suggest adjustments
pra <-- pat : Provide consent\nto share information

pra -> api : Record adjustment record (transaction Bundle)

api -> con : Create/update resource
con -> con : Validate
api <-- con : return
alt Validation failed
api -> api : rollback
end
Expand Down Expand Up @@ -48,3 +42,4 @@ pra <-- api : OperationOutcome

@enduml


16 changes: 5 additions & 11 deletions input/images-source/remove-ra-record-sequence.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,20 @@ skinparam actorStyle hollow
actor "Practitioner" as pra
actor "Patient" as pat
participant "FHIR API" as api
entity "Consent" as con
entity "Patient Flag" as pfg
entity "Adjustment Flag" as adj
entity "Condition" as cod

pra -> pat : Request consent
pra <-- pat : Deny/revoke consent
pra -> pat : Consult

pra -> api : Record consent was not given
api -> con : Update resource
con -> con : Validate
api <-- con : return
alt Validation failed
api -> api : rollback
pra <-- api : OperationOutcome
else Validation passed
alt Validation passed
api -> pfg : Delete adjustment patient flag
api -> adj : Delete adjustment flag(s)
api -> cod : Delete condition flag(s)
pra <-- api : OperationOutcome
else Validation failed
api -> api : rollback
pra <-- api : OperationOutcome
end

@enduml
30 changes: 6 additions & 24 deletions input/images-source/retrieve-ra-record-sequence.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,19 @@
skinparam actorStyle hollow

actor "Practitioner" as pra
actor "Patient" as pat
participant "FHIR API" as api
entity "Consent" as con
entity "Patient Flag" as pfg
entity "Adjustment Flag" as adj
entity "Condition" as cod

pra -> pat : Request confirmation\n of consent to\n access information
pra -> api : Query for records

alt Consent provided
pra <-- pat : Provide consent
api -> pfg : Query for records
api -> adj : Query for records
api -> cod : Query for records

pra -> api : Query for records
api -> api : Assemble returns
pra <-- api : SearchSet Bundle
else Consent not provided
pra <-- pat : No consent provided
else Consent revoked
pra <-- pat : Previous consent is revoked

pra -> api : Record consent was revoked
api -> con : Update resource
con -> con : Validate
api <-- con : return
alt Validation failed
api -> api : rollback
else Consent updated
api -> pfg : Delete adjustment patient flag
api -> adj : Delete adjustment flag(s)
api -> cod : Delete condition flag(s)
end
pra <-- api : OperationOutcome
end

@enduml
@enduml

0 comments on commit fcbb3c4

Please sign in to comment.