FHIR Chat · medicare identifier · australia

Stream: australia

Topic: medicare identifier


view this post on Zulip Brian Postlethwaite (Feb 01 2021 at 04:18):

Has anyone already done the invariant to validate the medicare number, and is this a valid description of the routine for the checksum?
https://clearwater.com.au/code/medicare
It seems to work like this:

(value.substring(0,1).toInteger() + (value.substring(1,1).toInteger() * 3) + (value.substring(2,1).toInteger() * 7) + (value.substring(3,1).toInteger() * 9) + value.substring(4,1).toInteger() + (value.substring(5,1).toInteger() * 3) + (value.substring(6,1).toInteger() * 7) + (value.substring(7,1).toInteger() * 9)) mod 10 = value.substring(8,1).toInteger()

view this post on Zulip Brian Postlethwaite (Feb 01 2021 at 04:19):

@Rob Eastwood is this something that you've looked into? I can't recall who did it for the IHI already.

view this post on Zulip Rob Eastwood (Feb 01 2021 at 04:36):

Brian Postlethwaite said:

Rob Eastwood is this something that you've looked into? I can't recall who did it for the IHI already.

Hi Brian; to my knowledge no-one in the Agency has done any validation of the Medicare Number. And am pretty sure that the IHI invariant for the Luhn check (as included in the HL7 AU IHI profile) was done by @Vikas Mittal

view this post on Zulip Brian Postlethwaite (Feb 01 2021 at 09:04):

Ah that's right, thanks.


Last updated: Apr 12 2022 at 19:14 UTC