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

Draft MR for reviews #48

Draft
wants to merge 43 commits into
base: vaready
Choose a base branch
from
Draft

Draft MR for reviews #48

wants to merge 43 commits into from

Conversation

shabiel
Copy link
Contributor

@shabiel shabiel commented Jan 27, 2025

No description provided.

glilly and others added 24 commits January 14, 2025 18:24
- Update message "already loaded" in SYNFHIR to contain filename.
- Update `SYNINIT` to suppress "Late ACRP Related Bulletins".
- There was a lot of code that syncs data between systems; or points
  to dead termininology servers. All such code while potentially useful
  can open us to security issues in case the domains are taken over.
- SYNFPUL, SYNFVF, SYNSYNCH entire routines removed.
- Code in SYNF{ALG,APT,MED2} that pointed to SYNFPUL has now been
  removed.
- SYNDHPMP did a lot of terminlogy lookups on a now defunct server. We
  don't support remote server terminology lookups, and all that code has
  now been removed. The defunct servers used to be owned by a previous
  sponsor of the project.
- Here's a list of the remaining URLs in code (not in comments) in the project:
	- SYNFPAT: `set ssnref="http://hl7.org/fhir/sid/us-ssn"`. Used as
	  a varaible, never used in a URL.
	- SYNFMED: `N URL S
	  URL="https://rxnav.nlm.nih.gov/REST/rxcui/{RXN}/property.json?propName=VUID"`.
	  Well known API for RxNorm API. A future version of the project
	  may use this.
- All SYNJSON* routines now removed.
- References to SYNJSON were examined and either changed to XLFJSON;
  or if found to be only of use to the earlier web-server version of the
  code, they were just removed. Most actually fall in the latter
  category.

After these changes, 120 patients were loaded for testing and everything
looks good.
@shabiel shabiel self-assigned this Jan 27, 2025
src/SYNFLAB.m Show resolved Hide resolved
Copy link
Contributor Author

@shabiel shabiel left a comment

Choose a reason for hiding this comment

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

Done with review.

src/SYNFLAB.m Show resolved Hide resolved
src/SYNFLAB.m Show resolved Hide resolved
src/SYNFLAB.m Outdated Show resolved Hide resolved
src/SYNFLAB.m Show resolved Hide resolved
src/SYNFPAN.m Outdated Show resolved Hide resolved
src/SYNFPAN.m Outdated Show resolved Hide resolved
src/SYNFPAN.m Outdated Show resolved Hide resolved
src/SYNFPAN.m Outdated Show resolved Hide resolved
src/SYNFPAN.m Show resolved Hide resolved
src/SYNFPAN.m Show resolved Hide resolved
@shabiel shabiel marked this pull request as draft January 27, 2025 17:25
@shabiel shabiel requested a review from glilly January 27, 2025 17:26
@glilly
Copy link
Collaborator

glilly commented Jan 27, 2025

I committed all the changes that are discussed above. I'll leave it to you to resolve them once you check.

shabiel and others added 2 commits January 27, 2025 14:50
SYNFHIR:
- Suppress talking from Fileman by setting DIQUIET (happens when filing
  Encounters and Procedures)
- Cosmetic write fixes

SYNINIT:
- Main menu is SYNMENU, not XUCORE
@glilly
Copy link
Collaborator

glilly commented Jan 28, 2025

these changes have been committed

src/SYNFPAN.m Show resolved Hide resolved
. ; lab panel
. ;
. N PANEL
. S PANEL=$$MAP^SYNQLDM(loinc,"vistapanel")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I figured out why you don't show failed panels. You need to add a line here if a panel is not found.

src/SYNFPAN.m Outdated Show resolved Hide resolved
Result was that panels didn't file, and labs filed instead.
@glilly
Copy link
Collaborator

glilly commented Jan 28, 2025 via email

glilly and others added 14 commits January 29, 2025 05:08
- Initilize counters and don't use $get (to make sure we get zeros if
  nothing got imported)
- Fix adjustment to values so that it works correctly (initial code
  didn't)
- Make new users for Synthea not login users by removing setting of
  Verify codes (Access Codes still needed in order to ensure Mailman and
  other parts of VistA still function).
- Remove new users for Synthea from Intro message
- Check for XUMGR before KIDS starts installation in ENV and
  Pre-install.
- Since we now don't expect to use our new users as login users, check
  for LRLAB and LRVERIFY keys before starting patient loads. If these
  are not present, don't start load.
- Rollover lab accession numbers by default. It's a no-op if it is not
  needed. This suppresses error messages from the lab package in case
  rollover is not done on a nightly basis in Taskman.
- Add a way (now the default) to import only one patient at a time.
  Importing multiple patients, while useful for a batch operation,
  results in our inability to terminate the import early. You can still
  import multiple patients if you want.
- Code cleanup in SYNKIDS
	- Move ^SYNINIT to be under POST
	- Reorganize tags to be in the order they are called
	- Removed unused tags
SYNFHIR:
- Remember previous directory
- Pick next unloaded patient by default

SYNFLAB:
- Code that grabbed values was using wrong variable
- If value cannot be found, log and count as error
- Move GFR sksip earlier (it stopped working since the test isn't
  mapped, and that check now happens as of a few commits ago) and add
  its count to "loaded"
- Fix error counts for labs that are not found

SYNFPAN:
- Add 24356-8 as URINALYSIS
- Remove unused loinc2sct label

SYNKIDS
- Remove XUMGR check in PRE

SYNQLDM
- Add HCT mapping
- Fix Troponin LOINC (previous was for panel, not atomic test)
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.

2 participants