-
Notifications
You must be signed in to change notification settings - Fork 66
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
(feat) add helper function to auto generate infant ptracker id #129
Conversation
…based on the birth count form engine helper function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -280,6 +280,17 @@ export class CommonExpressionHelpers { | |||
return daySinceLastObs === '' ? '0' : daySinceLastObs; | |||
}; | |||
|
|||
generateInfantPTrackerId = (fieldId: string, motherPtrackerId: string): string | undefined => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these supported from individual esms? This looks specific to an implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hold this off for now
@pirupius Since this is implementation specific this can be closed and added to the right esm |
Closing as this is being moved to implementer esm |
OHRI-1819: Child(s) PTracker ID in L&D form Validated or autopulated based on the birth count form engine helper function
Requirements
Summary
This PR add support to auto populate the PTRacker ID for the Child in full based on the birth count and the mother’s ID i.e. the system should assign PTracker ID to the babies for baby number 1 mothers' ID and 1 for child 1 and 2 for child 2 and add three for child 3 etc
Screenshots
Screen.Recording.2023-10-09.at.10.41.53.AM.mov
Related Issue
Other