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

RM-48543 always generate identifiers property for Social History #15

Merged

Conversation

kin-lee-ELH
Copy link

@kin-lee-ELH kin-lee-ELH commented Feb 28, 2024

  • always generate identifiers property for Social History
  • for Social History section when id node is nullFlavor, return a list of Identifiers with Identifier null, so hippo can always expect property exists

RM-48543

@kin-lee-ELH kin-lee-ELH requested review from a team February 28, 2024 01:11
@@ -43,6 +43,9 @@ var exportSocialHistorySection = function (version) {
}
delete this.js.nullCodeReplacementText;
}
if (!_.has(this, "js.identifiers")) {
this.js.identifiers = [{"identifier": null}];
Copy link

Choose a reason for hiding this comment

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

Hey I'm just curious because I don't really understand what I'm reading here
https://github.com/search?q=repo%3Aelationemr%2Fblue-button%20identifiers&type=code
It looks like "identifiers" is defined as "0..*" field in this file (line 23). Should it be changed as well ?

Copy link
Author

Choose a reason for hiding this comment

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

yeah, when the xml has nullFlavor it'll get ignored <id nullFlavor="UNK"/>, it won't get parsed. This code is in another blue-button-xml repo.

Copy link

@zhaowb zhaowb left a comment

Choose a reason for hiding this comment

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

LGTM

@kin-lee-ELH kin-lee-ELH merged commit 59536f9 into master Feb 29, 2024
@kin-lee-ELH kin-lee-ELH deleted the defect/RM-48543-always-generate-identifiers-property branch February 29, 2024 00:53
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