-
Nov 22nd, 2017, 02:08 PM
#1
Thread Starter
New Member
XOR Checksum for High And Low Byte
Dear All Master,
I need your help, below are the problem i facing and i have no idea how to get start
i'm using serial communication connected with a machine and i was receive a block message such as
! ./H|\^&
P|1||617013597||MUHAMMAD^SHAFIQ^IKHWAN|||||||||||||||||||||||||||
O|1|W2|||||20171024074000
R|1|^^^449261136087^92|BACT %-
the part that i bold %- is the checksum for the block of text
in the document is was describe that the checksum is usinng XMODEM Rules
With the translation enabled the communications packet would appear as follows:
<SOH><BSN1><BSN2><CBSN1><CBSN2><--- 128 data bytes --- > <CHK1><CHK2>
Becton Dickinson's implementation of the protocol makes use of the translation process for
the BSN, CBSN and the CHK characters. If you are implementing the protocol to interface
with one of Becton Dickinson's instruments, the translation process must be included in the
implementation.
i know how to get the single checksum for XOR but when come to High and Low ... i have no idea...
CHK1 is Checksum in High Byte and CHK2 is Low Byte..
i need to know how to calculate the CHK1 and CHK2 when i return block message back to the machine.
-
Nov 22nd, 2017, 03:43 PM
#2
Re: XOR Checksum for High And Low Byte
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Nov 22nd, 2017, 04:46 PM
#3
Re: XOR Checksum for High And Low Byte
Originally Posted by .paul.
Neat link
-
Nov 22nd, 2017, 10:56 PM
#4
Re: XOR Checksum for High And Low Byte
Ling,
Many years ago, I worked as a Programmer at a Healthcare institution, and sat next to a guy who worked pretty much exclusively with all of the HL7 interfaces that were used to keep patient data in all of the disparate computer systems in sync. Because of that, I've seen enough raw HL7 data to know one when I see one.
I sincerely hope that the data you've posted is for a test patient and not for an actual person. If it is a real person, posting this HL7 message in public is a HIPAA violation. HIPAA notwithstanding, it could also be assumed that the 9 digit number that precedes their name could be a social security number, which could lead to identity theft for this person.
If this is real data then you should immediately inform a mod and request that the data be removed from your original post.
-
Nov 22nd, 2017, 11:28 PM
#5
Thread Starter
New Member
Re: XOR Checksum for High And Low Byte
Originally Posted by OptionBase1
Ling,
Many years ago, I worked as a Programmer at a Healthcare institution, and sat next to a guy who worked pretty much exclusively with all of the HL7 interfaces that were used to keep patient data in all of the disparate computer systems in sync. Because of that, I've seen enough raw HL7 data to know one when I see one.
I sincerely hope that the data you've posted is for a test patient and not for an actual person. If it is a real person, posting this HL7 message in public is a HIPAA violation. HIPAA notwithstanding, it could also be assumed that the 9 digit number that precedes their name could be a social security number, which could lead to identity theft for this person.
If this is real data then you should immediately inform a mod and request that the data be removed from your original post.
dun worry that is the sample id not the patient id.
-
Nov 22nd, 2017, 11:32 PM
#6
Thread Starter
New Member
Re: XOR Checksum for High And Low Byte
Dear Paul,
i still have no idea after read through...
-
Nov 23rd, 2017, 06:05 AM
#7
Re: XOR Checksum for High And Low Byte
OB1
I sincerely hope that the data you've posted is for a test patient and not for an actual person. If it is a real person, posting this HL7 message in public is a HIPAA violation. HIPAA notwithstanding, it could also be assumed that the 9 digit number that precedes their name could be a social security number, which could lead to identity theft for this person.
If this is real data then you should immediately inform a mod and request that the data be removed from your original post.
Emphasis added
Spoo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|