Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUIDs parsed as prescriptions with invalid dose values #1

Open
martinburchell opened this issue Jan 7, 2021 · 0 comments
Open

UUIDs parsed as prescriptions with invalid dose values #1

martinburchell opened this issue Jan 7, 2021 · 0 comments

Comments

@martinburchell
Copy link

martinburchell commented Jan 7, 2021

I'm noticing that UUIDs in a patient record are being parsed as prescriptions eg:

54A14C20-50FB-11EB-AE9C-9999999999C

Results in:


_content:C-9999999999C
_end:35
_id:44
_set:Output
_start:22
_type:Prescription
dose:-9999999999C
dose-multiple:1
dose-unit:C
dose-value:-9.999999999E9
drug:C
drug-type:GATE_gazetteer
route:unknown
status:continuing
tense:present

or

C-12345E678901C

results in:

_content:C-12345E678901C
_end:15
_id:20
_set:Output
_start:0
_type:Prescription
dose:-12345E678901C
dose-multiple:1
dose-unit:C
dose-value:-Infinity
drug:C
drug-type:GATE_gazetteer
route:unknown
status:continuing
tense:present

I don't know enough about GATE or this plugin to understand where the responsibility lies for sanity checking the output (our application assumes dose-value is decimal so chokes on "-Infinity" or exponential notation). "-Infinity" does seem wrong for a field defined as a double that would never be negative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant