hl7-argonaut-fhir
hl7-argonaut-fhir copied to clipboard
Convert OAuth UseCase to Nightwatch Test Script
- St. Mary's Hospital has an EMR system called OldPracticeManagement.
- SpiffyStartup is using Clinical Meteor to create a new app called SocialHealthRecord.
- SpiffyStartup contracts with St. Mary's Hospital to provide a PatientPortal to OldPracticeManagement, using their shiny new SocialHealthRecord app. As part of the contract, they set up an HL7 interface between St. Mary's and SocialHealthRecord.
- Jane Doe moves to a new state, and registers in a new healthcare plan HappyPatients.
- Jane visits St. Mary's Hospital, where she doesn't exist in OldPracticeMangement. The receptionist creates an account for her in OldPracticeManagement system.
- The HL7 interface then sends a message to SocialHealthRecord and tells it that there's a new patient named Jane Doe in the system.
- SocialHealthRecord can later query OldPracticeManagement for a list of Jane Doe's medications using the HL7 interface.
- When the Radiologist finishes reading Jane Does's report, and submits it to OldPracticeManagement, the HL7 report forwards the report to SocialHealthRecord.
Could you provide a bit more direction @awatson1978 ? Could you kindly link to an example of some NightWatch test scripts that are similar to those we need here?