Computer Science
A blockchain could be considered as a state machine. Suppose a hospial with 100,000 patients, 500 physicians, 1000 nurses, and 100 adminsitrative staff is using a blockchain to keep track of its activities. Each patient has a patient ID. Each of the employees (physicians, nurses, and admins) have an employee ID. For simplicity let us assume that there are only five types of transactions: (i) New patient admitted and assignd an ID by an admin (ii) A patient is discharged by an admin (iii) A nurse takes a triage of the patient (temperature, blood pressure, etc.) and records the information(iv) A physician makes a diagnosis and prescribes medications (v) Patient is billed by an admin. Answer the following questions.
What could be the state of the hospital?
What would a transaction of type (iv) look like? (Hint: Show the type and its parameters)
If a patient with ID A67567 has been discharged (type ii), show how this transaction results in a transition to a new state?
Make any suitable assumptions but make sure to state them.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here