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

loinchpo.io.Utility module static method issues with check_all #39

Open
DeiteoEnjinieo-Lea opened this issue May 17, 2023 · 0 comments
Open

Comments

@DeiteoEnjinieo-Lea
Copy link

New to using the LOINC package but currently have an issue checking the validity of the codes with the following static methods. Trying to run a Query, received an LoincHpoValidationError relating to a code used. So I utilized the Utility module static method for data checking. Using first the is_loinc_id it was valid:

# check if any of these values are valid 
from loinchpo import Utility
val_chck = Utility.is_loinc_id('5778-6')
# is this even a valid code
print(val_chck)

then checked the outcome with is_outcome:

out_chck = Utility.is_outcome('positive')
print(out_chck)

then I checked to validated both and got the following output of None, if both codes are valid could further explanation or documentation be provided as well as the static method for parse_outcome utilization is not provided but it does format the outcomes correctly, its unclear if that's its only usage

# okay, lets check together
check_all = Utility.check_all('5778-6','neg')
print(check_all)
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