MedicalRecord

UTILITYTOOLSDOCUMENTS

Exposed Methods

addHospital registers a hospital

| parameter name | type | details | | --------- | --------- | --------- | | _hospital | address | ethereum address of the hospital |

removeHospital removes a hospital

| parameter name | type | details | | --------- | --------- | --------- | | _hospital | address | ethereum address of the hospital |

addPerson registers a person

| parameter name | type | details | | --------- | --------- | --------- | | _SSN | uint | social security number of the person | | _name | string | name of the person| | _personaddress | address | ethereum address of the person|

hospitalized function called by the hospital staff when a person is hospitalized

| parameter name | type | details | | --------- | --------- | --------- | | _SSN | uint | social security number of the person | | _month | uint | month the person was hospitalized| | _day | uint | day the person was hospitalized| | _year | uint | year the person was hospitalized|

dischargePatient function called by the hospital staff when a person is discharged from the hospital

| parameter name | type | details | | --------- | --------- | --------- | | _SSN | uint | social security number of the person | | _id | uint | id of the record | | _month | uint | month the person was hospitalized| | _day | uint | day the person was hospitalized| | _year | uint | year the person was hospitalized|

getRecord returns one record of a person

| parameter name | type | details | | --------- | --------- | --------- | | _SSN | uint | social security number of the person | | _index | uint | index of the record |

getRecordCount returns the number of records of a person to be used by dapp

| parameter name | type | details | | --------- | --------- | --------- | | _SSN | uint | social security number of the person |

checkStatus returns the status of a person, patient or not

| parameter name | type | details | | --------- | --------- | --------- | | _SSN | uint | social security number of the person |

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract