Created
October 15, 2013 13:54
-
-
Save jherskovic/6991929 to your computer and use it in GitHub Desktop.
This is the default expected medication format for the MedRec project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
medication_parser = re.compile(r"""^\s*(?P<name>.*?) | |
\s+(?P<dose>[0-9\.\/]+) | |
\s*(?P<units>([mck]|mc)g|[md]l) | |
\s*(?P<formulation>.*?) | |
; | |
\s*?(?P<instructions>.*)""", | |
re.IGNORECASE | re.VERBOSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment