-
Notifications
You must be signed in to change notification settings - Fork 663
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
Bug related to multiple medication administrations for a given medication #1079
Comments
jawalonoski
added a commit
that referenced
this issue
Jun 24, 2022
Fix #1079 multiple administrations.
ccardwell17
added a commit
to clinetic/synthea
that referenced
this issue
Dec 5, 2022
* Rebase on master to take advantage of new BigDecimal financial calculations, switch carrier file tests to use BigDecimal and use exact comparisons for totals and line item sums. * Remove unused code and add unit tests. * Removing the 'AWAY' hack for incorporation into mainline Synthea * Removing the synthetic dataset project files * add gaussian noise to anesthetist model * Added logical operators to attribute insurance eligibility * Added "!=" support to attribute eligibility * Simplified and refactored Attribute Qualifier logic * Checkstyle/readability fixes * Serialization test fix * merge prep * add new keep module for 'must have any cardiac surgery' * add gaussian noise to add randomness to AVReplace and TAVR * Removed veteran eligibility. Updated plan selection description * Fixing checkstyle issue * Adjust readme and help to remove -m. * Fix BP code to be the required code. * fix dangling reason reference * code cleanup * Fix random divergence between runs with the same seeds. * Change anesthesia seed and specialty. * Update RIF field spreadsheet to match latest code. * Change beneficiary file export. Instead of three files (INSERTS, intermediary UPDATES, final UPDATES) now output one file per year of export. * Fix synthetichealth#1079 multiple administrations. * Fix MedicationAdministration when a medication that is currently on an active prescription is also administered. * Fix checkstyle. * Add test for FactTable.getFactByKey * Add positive example to test getFactByKey Co-authored-by: Jason Walonoski <[email protected]> * Fix synthetichealth#1084. * All cardiology surgeries go to the first hospital. * BFD - use long for claim group ids * Fix bug where initializing BFD RIF CLM_GRP_ID would fail for large numbers * Add middle names. * Add disabled unit test to manually revalidated failed CCDA exports. * Fix NPE on looking up provider location references. * Fix occasional unit test failure. * Fix unit test comparisons. * Load static utils once instead of each test, just in case it is doing something weird. * Fix unit tests when ndjson export is configured. * Revert default value change. * Remove unused imports. * Create NDJSON files for Organizations, Locations, Practitioners, and PractitionerRoles. * Remove dangling comment. * Fixes template when there is no smoking history. * Fix situation with no wellness encounters. * Fix synthetichealth#1086. * BFD RIF export summary CSV with counts of claims per beneficiary by claim type * BFD RIF Add new gradle task to compute minimal list of benes with all claim types covered * Filter existing claims to only include minimized set of benes * Add unit tests, ensure RIF file fields are not quoted * Fix checkstyle issues. * Set BENE_MDCR_STATUS_CD based on patient properties instead of randomly * Add unit tests. * Update US Core v4 export and enforce physiology usage more consistently. * WIP: Fixes based on PR review comments * Update expired codes. * Add MedicationRequest.category. * Fix synthetichealth#954. * Fix export of units in CSV. * Add head circumference percentile for US Core v4. * Added input-based plan priorities * Changed Insurance Plans to use eligibility policy, not payers. * Added time-based plan availability * Added back large national payers * Add tests for RIF DME export and fix identified issues * WIP: more fixes based on PR review. * PR comment responses, test fixes * Improved user experience (friendlier column names, error messages) * Changed MNIL to be more general with spenddowns as an input * Updated attribute logic regex to work independent of spacing. * Refactored attribute eligibility * Added plan time box tests, fixed duration days method, other PR comments * Removed isBlank() method which is in Java 8 * Refactored simple eligibility classes to lambdas * Test fixes, user friendly input fixes (column names, trimming whitespace) * PDE claim amount fixes. * Adding an end-to-end test * Merge fixes * Fixes for Java 17 and checkstyle fixes * One more checkstyle fix * Fix PDE prices based on quantity with extra unit tests. * Update module prescription durations. * Update medications in modules to account of administrations, chronic meds, and reasons for PDE claims. * Fix issues related to PDE claims with zero quantity, dispenses, or costs. * Additional comment. * Rename method. * PDE claim amount fixes. * Fix PDE prices based on quantity with extra unit tests. * Update module prescription durations. * Update medications in modules to account of administrations, chronic meds, and reasons for PDE claims. * Fix issues related to PDE claims with zero quantity, dispenses, or costs. * Additional comment. * Rename method. * Add PDE unit test. * Fix template to account for alcoholic=false in properties. The original code just looksed for the presence of the alcoholic property but ignroed the value, this PR checks that the value is both present and true. * Update code descriptions. * Fix typo * Removing unnecessary checks for null * Reverted Claim.assignCosts() to the original logic. * Merge Fixes * Merge Fixes * Fix snomed code, requires quotation marks. * test fix * covid test fix * Updated a test to use precise month value. * Fixes an issue with fixed records, birthdates and timezones When converting timestamps into LocalDates, the code was using the local system timezone, when it should be using UTC. This was an issue for some fixed records with a birthdate that happens in the year before the start of Daylight Saving Time. This fix switches to using UTC. * More selective application of DiagnosticReport lab US Core profile. * Fix incorrect SNOMED codes. * Add new attribute to RIF manifest. * Revert default properties change. * Fixed an issue with income remaining * Fixed unix time consistency issues * Fixed an issue with timestep and health insurance inconsistencies * Synthea.properties reversion * Fixed test issues exposed by new consistent time format * Fixed a serialization issue * Cleaned up income remaining logic * Fixed loss of care tests * Fix incorrect state code. * Removed extraneous params from synthea.properties, improved file name checks * Fixed CSV exporter test failure * Fixed a javadoc issue. * Add default value for exporter.encoding in code. * Remove quality as a provider finder option (due to lack of fresh data). * Ignore the failed_exports folder. * Update provider files. * Update providers and exporters for new provider files. * Fixed typos, removed unimplemented networks, re-added insurance_status, fixed poverty level, fixed test states. * Limit jacoco focus. * Ensure exporter test sets USCore on. * Fixed test failure * v3.1.0 release * Start of v4.0.0 cycle * Fix synthetichealth#1146. * WIP: Bumping dependencies and getting rid of Spring Some tests are broken, but this commit does a few things: * Bumps most dependencies * Removes Spring as it was only used for RestClient * Uses OkHttp since it was already a transitive dependency Remaining issues are related to URL validation for value set expansion. Previous versions of the library were ok with things like `http://snomed.info/sct?fhir_vs=ecl/<<2491000087104`. Not so much anymore. * WIP: All tests now passing Fixed some of the cases where invalid characters for URLs are being used in value set expansion URLs * Updating workflows for Java 11 * More bumps for Java 11 * Bumping the version of snakeyaml * Cleanup of RandomCodeGenerator URLs and null safety * Fix issue where BFD manifest timestamp would omit seconds when their value was zero. * Update provider organization names. * Ensure that each Provider UUID is only exported once. * Updating CQL infrastructure used by physiology simulation This bumps the various dependencies and handles an API change for how CQL is read in from ELM XML files (I think). * Fix loading of plans when payer does not exist because it is out of state. * Update SNF module to fix a bug where all procedures would happen in one day, and reduce probablility of various procedures. Update default BFD RIF revenue center codes to better match real data. Update BFD RIF SNF exporter so that claim lines without HCPCS codes are not skipped (matches real data). Centralize logic that determines which events map to which BFD RIF claim files. * Consolidate SNF claim lines of the same type into a single line. * Add mappings to SNF PDPM codes * Map HHA rev center codes where possible, add utility code to consolidate encounters into service periods based on temporal proximity. * Rebase on master, fix conflicts and checkstyle warnings * Consolodate RIF home health claims into service periods instead of one claim per encounter (typically one per day). * Consolidate RIF HHA claim lines by HCPCS code and REV center * Update README.md * Update src/main/java/org/mitre/synthea/export/BB2RIFExporter.java Co-authored-by: Jason Walonoski <[email protected]> * Address review comments, change test seed to ensure 1 or more BFD DME claims. * Bumping the graphviz dependency and updating code for API changes Also fixes some issues noticed with GMF in date comparisons for HIV submodules. * Add a JavaScript engine for graphviz By default, the graphviz-java library will use a local installation of graphviz if available. If not, it will try to use a JavaScript based version of graphviz. Since Java 15, the JDK no longer ships with a JavaScript runtime, so this adds one to allow tests to pass on machines running Java 15 or later without graphviz installed. This should address issue synthetichealth#841 * This fixes an issue with the classpath in Eclipse. * If graphviz fails to output one graph, it will continue to try on the others. Work around for very large modules. * Restore HIV model date logic, which was precise to the exact day a medication became available. * Update CSV exporter to include patient FIPS county code and more frequently populate the zip code. * Fix SSA County code default value to try county name matching or picking a county within the correct state. * Change parameter type. * Modify RIF tests so there are always DME claims. * Configure sonatype-lift. * Fix checkstyleTest issue on unit test. * Integrate CodeRx MDT maintenance_inhaler submodule * WIP: Updating MDHT jars * WIP: Filtering vital signs and fixing case of no diagnostic images * WIP: Fixing vital signs in CCDA * WIP: Implementing CCDA functional status section * Update BFD HHA exporter to add total charge revenue center line to all claims * BFD HHA: consolidate claim periods by provider, separate claim lines by clinician. Fix bug in claim cost aggregation for medications. Rename some claim methods for clarity. * Fix checkstyle warning * Add total claim rev center line to SNF claims. Further clean up of HHA total claim rev center line * RIF SNF use the clinician for the line item instead of the encounter. Makes no difference at the moment since one encounter encompasses all of the SNF items for a claim but may be useful in the future and this is in line with HHA and the approach we shoudl use for other file types. * Removing MDHT and any associated CCDA stuff * Removing unused CCDA templates * And some things that should not have been forgotten were lost. * A variety of DME changes. * Additional DME adjustments. * Update src/main/java/org/mitre/synthea/export/BB2RIFExporter.java Co-authored-by: Jason Walonoski <[email protected]> * Apply suggestions from code review Lower-case lookup_table_names. Need to fix this on MDT side moving forward if this resolves the issue. Co-authored-by: Jason Walonoski <[email protected]> * Rename and remove unused. * Fix merge errors, finish blank modules, replace procedure duration calculations. * Switch current uberJar method to use shadowJar plug-in instead of manual assembly * nasa-127 add renown_cardiology_study_1 module and pci_stents * nasa-127 fix malignancy distribution * nasa-127 add procedure codes with mappings Co-authored-by: Marc Hadley <[email protected]> Co-authored-by: Jason Walonoski <[email protected]> Co-authored-by: Jason Walonoski <[email protected]> Co-authored-by: Andy Gregorowicz <[email protected]> Co-authored-by: Dylan Hall <[email protected]> Co-authored-by: Robi Scalfani <[email protected]> Co-authored-by: Carolin Brandt <[email protected]> Co-authored-by: Joseph LeGrand <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #1077
Originally posted by mduna May 31, 2022
Is it possible to make multiple medication administrations for a given medication? For example, a vancomycin IV medication once a day for 5 days. Synthea will generate five MedicationRequest resources for five days, one resource per day. If it is possible, could please show me an example? Thanks.
The text was updated successfully, but these errors were encountered: