Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Provided TIN not imported from qrda/cda in provider_importer.rb #458

Open
imbroglioj opened this issue Dec 16, 2016 · 4 comments
Open

Provided TIN not imported from qrda/cda in provider_importer.rb #458

imbroglioj opened this issue Dec 16, 2016 · 4 comments

Comments

@imbroglioj
Copy link

In Cypress health-data-standards-1bb2d48cf24f (mongoid) at least, file path /lib/health-data-standards/import/cda/provider_importer.rb the provider NPI is extracted but not the provider TIN.

2016 C4 filter applications that use the health-data-standards library require the provider TIN.
It is possibly a one-line addition to extract_provider_data in HealthDataStandards::Import::CDA::ProviderImporter.

I'm not a Ruby-experienced, but I will try the change locally and report.

@imbroglioj
Copy link
Author

Alas, it may be a different location that is leaving the TIN behind.

@imbroglioj
Copy link
Author

In provider_importer.rb the cda_idents extraction code was not capturing the representedOrganization cda-identifier. Add a copy for that root solves the problem. But perhaps the entity.xpath call can be adjusted to capture both ids in one loop.

@imbroglioj
Copy link
Author

Just needed "//cda" instead of "/cda" in the entities search xpath call. Must be what was intended.

@imbroglioj
Copy link
Author

Here's a copy of the changed file.
provider-importer.rb.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants