// // Purpose: openEHR Platform Conformance Test Case // Identifier: tc_ehr-get_sub // Description: Get the EHR for a subject. // Interface: I_EHR_SERVICE // Copyright: openEHR Foundation (c) 2017 // License: CC-BY-SA 3.0 Unported // Reference: // // Get handle to service and an authorisation token I_EHR_SERVICE svc; PARTY_REF subject_id = svc.create_party_ref ("ehr", "PERSON", "1234"); // ----------- PASS ------------ assert(svc.has_ehr(subject_id)); EHR_SUMMARY ehr_summary = svc.get_ehr(an_ehr_id);