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

HLM-957 | Added patch to remove spaces in vaccine name for ICD codes #1280

Merged
merged 3 commits into from
Oct 13, 2022

Conversation

ajay-beehyv
Copy link
Contributor

@@ -223,7 +223,7 @@ function transformW3(cert, certificateID) {
const recipientName = R.pathOr('', ['recipient', 'name'], cert);
const recipientDob = dobOfRecipient(cert.recipient);
const vaccine = R.pathOr('', ['vaccination', 'name'], cert);
const icd11Code = vaccine ? VACCINE_ICD11_MAPPINGS.filter(a => vaccine.toLowerCase().includes(a.vaccineName)).map(a => a.icd11Code)[0]: '';
const icd11Code = vaccine ? VACCINE_ICD11_MAPPINGS.filter(a => vaccine.toLowerCase().replace(/\s/g, "").includes(a.vaccineName.replace(/\s/g, ""))).map(a => a.icd11Code)[0]: '';
Copy link
Contributor

Choose a reason for hiding this comment

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

a.vaccineName.toLowerCase!

@prasanna-egov prasanna-egov merged commit 1390106 into egovernments:main Oct 13, 2022
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.

3 participants