Query encounters workflow
Overview
The transaction queries for previous encounter for a specific patient. The following sequence diagram shows the steps involved in this transaction.
Â
Technical details
Ref | Interaction | Endpoint | Data | Transaction Specification |
---|---|---|---|---|
1 | Query encounters | GET /ws/rest/v1/patient/$<pat-ID>/encounters?$<queryParams> | HTTP request | Query for previous patient encounters |
2 | Resolve client identifier | POST openempi-admin/openempi-ws-rest/person-query-resource/findPersonById | OpenEMPI XML | Get Enterprise Client ID - Internal |
3 | Return person record |  | HTTP 200 OK | Get Enterprise Client ID - Internal |
4 | Extract ECID and enrich message with ECID | none | Â | Â |
5 | Query encounters by ECIDÂ | GET /ws/rest/RHEA/patient/encounters?patientId=1234&idType=ECID | HTTP request | Query for previous patient encounters - Internal |
6 | Return list of encounters | Â | HTTP 200 OK - HL7 ORU_R01 | Query for previous patient encounters - Internal |
7 | Replace ECID with original ID used by this facility | none | Â | Â |
8 | Resolve provider identifier | GET webservices/lookupbyid/nid/?id_type=ECID&id_number=xxx | HTTP request | Get Enterprise Professional ID - Internal |
9 | Return provider NIDÂ | Â | HTTP 200 OK - (plain text identifier) | Get Enterprise Professional ID - Internal |
10 | Replace EPID with NID | Â | Â | Â |
11 | Return list of encounters |  | HTTP 200 OK - HL7v2.5 ORU_R01 | Query for previous patient encounters |