Presentation is loading. Please wait.

Presentation is loading. Please wait.

Login Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 128 bytes User Name 128 bytes Password 1 byte CheckSum typedef enum MUMSPacketType.

Similar presentations


Presentation on theme: "Login Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 128 bytes User Name 128 bytes Password 1 byte CheckSum typedef enum MUMSPacketType."— Presentation transcript:

1 Login Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 128 bytes User Name 128 bytes Password 1 byte CheckSum typedef enum MUMSPacketType { BaMULoginRequestPacketType = 0, BaMULoginResponsePacketType = 1, BaMUPatientSelectionRequestPacketType = 2, BaMUPatientSelectionResponsePacketType = 3, BaMUPRNSelectionRequestPacketType = 4, BaMUPRNSelectionResponsePacketType = 5, BaMUBarcodeScanRequestPacketType = 6, BaMUBarcodeScanResponsePacketType = 7, MUMSCompartmentClosePacketType = 8, BaMURetrievalCompletePacketType = 9, BaMULogoutPacketType = 10, MaximumMUMSPacketType } MUMS_PACKET_TYPE; // From AAA.h typedef struct LoginFuncParameters { WCHAR UserName[AAA_DEFAULT_STRINGLENTGH]; // 64 WCHAR PassWord[AAA_DEFAULT_STRINGLENTGH]; // 64 //... } LOGINFUNCPARAMETERS;

2 BaMU Login Response Packet PacketType (1 byte) Payload Length (2 bytes) General Header 1 bytes #Patients 9 bytes MUMS hardware description length 292 bytes Patient 1 32 (64 bytes) Patient ID 112 (224 bytes) Patient Name 292 bytes Patient n … … typedef struct PERSON_NAME_STRUCTURE // From WTMModule.h { WCHAR EnglishGivenName[ENGLISH_GIVEN_NAME_LENGTH]; // 64 WCHAR EnglishLastName[ENGLISH_LAST_NAME_LENGTH]; // 32 WCHAR ChineseGivenName[CHINESE_GIVEN_NAME_LENGTH]; // 8 WCHAR ChineseLastName[CHINESE_LAST_NAME_LENGTH]; // 8 } PERSON_NAME, *PPERSON_NAME; // // Patient ID, from WTMModule.h // WCHAR IdNumber[PERSONAL_ID_NUMBER_LENGTH]; // 16 1 byte CheckSum 4 bytes Gender

3 BaMU Patient Selection Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 32 (64 bytes) Patient ID 1 byte CheckSum

4 BaMU Patient Selection Response(Prescription) Packet PacketType (1 byte) Payload Length (2 bytes) General Header 1 bytes #Medications 1 byte LED Light Color 990 bytes Medication 1 990 bytes Medication n … … typedef struct MedicationPartialInfo { WCHAR DoseFreq[MAXIMUM_FREQUENCY_NAME_LENGTH]; // 16 WCHAR PrescriptionId[PRESCRIPTION_ID_LENGTH]; // 32 TIME CreationTime; // 8 bytes WCHAR MedicationName [MEDICATION_SCIENTIFIC_NAME_LENGTH]; // 128 WCHAR MedicationId [MEDICATION_ID_LENGTH]; // 9 WCHAR DoseSize[MAXIMUM_DOSAGE_SIZE_LENGTH]; // 8 WCHAR DoseUnit[MAXIMUM_DOSAGE_UNIT_LENGTH]; // 32 WCHAR ContainerLocation [LOCATION_CODE_LENGTH]; // 10 WCHAR Instruction[MAXIMUM_INSTRUCTION_LENGTH]; // 256 } MEDICATION_PARTIAL_INFO; 1 byte Checksum 32 bytes DoseFrequency 64 bytes PrescriptionId 8 bytes Creation Time 256 bytes Medication Name 18 bytes Medication Id 16 bytes Dose Size 64 bytes Dose Unit 20 bytes Container Location 512 bytes Instruction

5 BaMU PRN Selection Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 1 bytes #PRNs 1 byte Checksum 18 bytes PRN MedID 1 18 bytes PRN MedID n … …

6 BaMU PRN Selection Response Packet PacketType (1 byte) Payload Length (2 bytes) General Header 1 bytes Selection Result 1 byte Checksum

7 BaMU Barcode Scan Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 18 bytes Medication ID 1 bytes Checksum

8 BaMU Barcode Scan Response Packet PacketType (1 byte) Payload Length (2 bytes) General Header 1 byte Hardware Situation 1 byte Checksum

9 MUMS Compartment Close Packet PacketType (1 byte) Payload Length (2 bytes) General Header 1 byte Compartment Close Result 1 byte Checksum


Download ppt "Login Request Packet PacketType (1 byte) Payload Length (2 bytes) General Header 128 bytes User Name 128 bytes Password 1 byte CheckSum typedef enum MUMSPacketType."

Similar presentations


Ads by Google