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

Ere 306 muster16svg extractor parser implementation #19

Closed

Conversation

OmarMalass
Copy link
Contributor

No description provided.

OmarMalass and others added 30 commits May 31, 2021 10:18
- Parsing and cleaning fields with help of regex.
- TODO: parse prescription info.
- Added tests.
- Updated tests.
- Moved Regex-Patterns to Parser class.
- Updated tests:
     * reflecting parser changes.
     * added a new test.
     * using SVGExtractor's output as parser's test input.
* Updated IMuster16FormParser and child classes.
* added safe-space when parsing the target year.
* access modifiers and package.
    * Delegating extraction of nameAndAddress-field subfields to PatientDetailsIntermediateExtractor.
    * Delegating formatting of indivisible fields to Muster16AtomicFormatter.
    * Class FormattingChain enables applying filters in a declarative way.

- Refactoring
- MedicationDataIntermediateParser:
    * Initial parsing of the medication entry.
    * Omits redundant lines.
    * Merge related medication lines.
- MedicationLine:
   * The model that the MedicationDataIntermediateParser uses.
- MedicationMatchers:
   * Matches an entry with a medication in the dataset, enabling proper merging of lines and extraction of PZN (TODO).
- DataProvider:
   * Loads and provides medication records from dataset.
- MedicationRecord:
   * Represents a medication entry from the dataset.
- Added tests.
- Refactoring: Moved tests to package: regxer
- Removed parsing logic the class.
- Updated the fields to private final.
- Added DataProvider interface.
- FormDataProvider: provides medication-forms as FormRecord.
- Calculates the similarity between the entry string and a medication-record.
- implemented TODOs.
- integrated SimilarityCalculator.
- This is the medication-string parsing delegate.
- Completed matching/extraction of PZN, form and size.
- TODO: parse name, dosage, and instructions.
  - Separated delegate package into delegate.medication & delegate.patient.
- Name and dosage parsing and formatting.
- Added tests.
OmarMalass and others added 4 commits June 13, 2021 19:09
- Fixed prefix result.
- Disabled tests based on secret samples.
- Removed prefix from bundle.
…er-Implementation' into ERE-306-Muster16SVGExtractorParser-Implementation
Copy link
Contributor

@ManuelB ManuelB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool code that can be merged. I especially like the following:

  • usage of a smart approach of string matching using similarity metrics and fuzzywuzzy as implementation
  • the usage of the KBV abbreviations for Darreichungsform
  • Usage of multiple unit tests

@OmarMalass
Copy link
Contributor Author

@ManuelB Thanks.
As suggested by @cartel1 , the "on-push" workflow is what matters at the moment.
I've merged this locally into main, and I'll close this now.

@OmarMalass OmarMalass closed this Jun 13, 2021
@OmarMalass OmarMalass deleted the ERE-306-Muster16SVGExtractorParser-Implementation branch July 7, 2021 17:16
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

Successfully merging this pull request may close these issues.

None yet

2 participants