Skip to content

Commit

Permalink
Merge pull request #53 from IHE/pre-pub-fixes
Browse files Browse the repository at this point in the history
Fixes last isues before publishing
  • Loading branch information
JohnMoehrke authored Dec 6, 2024
2 parents 008b2d7 + 6f880c0 commit 2ee8402
Show file tree
Hide file tree
Showing 19 changed files with 437 additions and 316 deletions.
53 changes: 53 additions & 0 deletions input/fsh/audit-115.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Profile: AuditSchedulingFindPotentialServer
Parent: IHE.BasicAudit.PatientCreate
Id: IHE.Scheduling.FindPotential.Audit.Recipient
Title: "Audit Event for the Find Potential Appointments Transaction at Recipient"
Description: """
Defines constraints on the AuditEvent Resource to record when a Find Potential Appointments \[ITI-115\] Transaction happens at the Recipient, and the transaction contains a Patient resource.
- Build off of the IHE Basic Audit Patient Create event
- add the ITI-115 as a subtype
- client is the Scheduling Client
- Server is the Scheduling Server
- may have user, app, organization agent(s)
- shall have a patient entity
"""
* modifierExtension 0..0
* subtype 2..
* subtype contains iti115 1..1
* subtype[iti115] = urn:ihe:event-type-code#ITI-115 "Find Potential Appointments"
* agent[server] obeys val-audit-source
* agent[client] ^short = "Scheduling Client"
* agent[server] ^short = "Scheduling Server"
* entity[patient] ^short = "Patient"


Invariant: val-audit-source
Description: "The Audit Source is this agent too."
Expression: "$this.who = %resource.source.observer"
Severity: #error


Profile: AuditSchedulingFindPotentialClient
Parent: IHE.BasicAudit.PatientCreate
Id: IHE.Scheduling.FindPotential.Audit.Source
Title: "Audit Event for the Find Potential Appointments Transaction at Source"
Description: """
Defines constraints on the AuditEvent Resource to record when a Find Potential Appointments \[ITI-115\] Transaction happens at the Source.
- Build off of the IHE Basic Audit Patient Create event
- add the ITI-115 as a subtype
- client is the Scheduling Client
- Server is the Scheduling Server
- may have user, app, organization agent(s)
- shall have a patient entity
- shall have an appointment identity entity
"""
* modifierExtension 0..0
* subtype 2..
* subtype contains iti115 1..1
* subtype[iti115] = urn:ihe:event-type-code#ITI-115 "Find Potential Appointments"
* agent[client] obeys val-audit-source
* agent[client] ^short = "Scheduling Client"
* agent[server] ^short = "Scheduling Server"
* entity[patient] ^short = "Patient"
* entity[data] ^short = "Appointment"
* entity[data].what only Reference(Appointment)
50 changes: 50 additions & 0 deletions input/fsh/audit-116.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Profile: AuditSchedulingHoldServer
Parent: IHE.BasicAudit.PatientCreate
Id: IHE.Scheduling.Hold.Audit.Recipient
Title: "Audit Event for the Hold Appointment Transaction at Recipient"
Description: """
Defines constraints on the AuditEvent Resource to record when a hold Appointment \[ITI-116\] Transaction happens at the Recipient.
- Build off of the IHE Basic Audit Patient Create event
- add the ITI-116 as a subtype
- client is the Scheduling Client
- Server is the Scheduling Server
- may have user, app, organization agent(s)
- shall have a patient entity
- shall have an appointment identity entity
"""
* modifierExtension 0..0
* subtype 2..
* subtype contains iti116 1..1
* subtype[iti116] = urn:ihe:event-type-code#ITI-116 "Hold Appointment"
* agent[server] obeys val-audit-source
* agent[client] ^short = "Scheduling Client"
* agent[server] ^short = "Scheduling Server"
* entity[patient] ^short = "Patient"
* entity[data] ^short = "Appointment"
* entity[data].what only Reference(Appointment)


Profile: AuditSchedulingHoldClient
Parent: IHE.BasicAudit.PatientCreate
Id: IHE.Scheduling.Hold.Audit.Source
Title: "Audit Event for the Hold Appointment Transaction at Source"
Description: """
Defines constraints on the AuditEvent Resource to record when a Hold Appointment \[ITI-116\] Transaction happens at the Source.
- Build off of the IHE Basic Audit Patient Create event
- add the ITI-116 as a subtype
- client is the Scheduling Client
- Server is the Scheduling Server
- may have user, app, organization agent(s)
- shall have a patient entity
- shall have an appointment identity entity
"""
* modifierExtension 0..0
* subtype 2..
* subtype contains iti116 1..1
* subtype[iti116] = urn:ihe:event-type-code#ITI-116 "Hold Appointment"
* agent[client] obeys val-audit-source
* agent[client] ^short = "Scheduling Client"
* agent[server] ^short = "Scheduling Server"
* entity[patient] ^short = "Patient"
* entity[data] ^short = "Appointment"
* entity[data].what only Reference(Appointment)
11 changes: 3 additions & 8 deletions input/fsh/audit-117.fsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Profile: AuditSchedulingServer
Profile: AuditSchedulingBookServer
Parent: IHE.BasicAudit.PatientCreate
Id: IHE.Scheduling.Book.Audit.Recipient
Title: "Audit Event for the Book Appointment Transaction at Recipient"
Expand All @@ -24,21 +24,16 @@ Defines constraints on the AuditEvent Resource to record when a Book Appointment
* entity[data].what only Reference(Appointment)


Invariant: val-audit-source
Description: "The Audit Source is this agent too."
Expression: "$this.who = %resource.source.observer"
Severity: #error


Profile: AuditSchedulingClient
Profile: AuditSchedulingBookClient
Parent: IHE.BasicAudit.PatientCreate
Id: IHE.Scheduling.Book.Audit.Source
Title: "Audit Event for the Book Appointment Transaction at Source"
Description: """
Defines constraints on the AuditEvent Resource to record when a Book Appointment \[ITI-117\] Transaction happens at the Source.
- Build off of the IHE Basic Audit Patient Create event
- add the ITI-117 as a subtype
- client is the Schedulking Client
- client is the Scheduling Client
- Server is the Scheduling Server
- may have user, app, organization agent(s)
- shall have a patient entity
Expand Down
Loading

0 comments on commit 2ee8402

Please sign in to comment.