Algorithm 2. Get PHR |
1: Input: Emergency Doctor ID, Patient ID 2: Output: Display the Patient PHR data items 3: Emergency Doctor ID ← Authorized Emergency Doctor 4: Patient ID ← Discover Registered Patient 5: Get Patient Data ← Authorized Emergency Doctor request to get patient data 6: Start time ← get the correct time date 7: if (Authorized Emergency Doctor request = true) then 8: Result ← check the Emergency Access Time constraint condition according to the start time 9: else 10: Return “Access Denied” 11: end if |