Skip to main content
. 2023 Sep 7;23(18):7740. doi: 10.3390/s23187740
Algorithm 1 Create, Update, and Revoke Medical Records
  •   1:
    procedure CreateRecord(patientID, data) recordnewMedicalRecord record.patientIDpatientID record.datadata save record▹ Save the record in the database
  •   2:
    end procedure
  •   3:
    procedure UpdateRecord(recordID, newData) recordfetch MedicalRecord with recordID
  •   4:
        if recordnull then record.datanewData save record▹ Update the record in the database
  •   5:
        end if
  •   6:
    end procedure
  •   7:
    procedure RevokeRecord(recordIDrecordfetchMedicalRecordwithrecordID
  •   8:
        if recordnull then delete record▹ Delete the record from the database
  •   9:
        end if
  • 10:
    end procedure