-
Notifications
You must be signed in to change notification settings - Fork 40
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
populate mamba reports #1847
populate mamba reports #1847
Conversation
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.
Thanks @lucyjemutai , i left a comment
|
||
useEffect(() => { | ||
if (patient) { | ||
const lastIdentifier = patient.identifier |
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.
I have some reservations on this, the last pTracker id will probably have the latest date and one that is no longer valid has an end date., unless a patient can have more than one pTrackerId.
You can have a look at this file, they are fetching identifiers based on types : https://github.com/openmrs/openmrs-react-components/blob/0a739855da0262b6cb79f7e27ae5ff62932232f4/src/domain/patient/patientUtil.js#L108
patient.identifiers.find((identifier) => identifier.type.id === identifiersTypes.PTrackerIdentifierType);
should work
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.
Thanks @lucyjemutai, left some review comments.
packages/esm-ohri-pmtct-app/src/views/mch-summary/mch-summary.component.tsx
Show resolved
Hide resolved
packages/esm-ohri-pmtct-app/src/views/mch-summary/mch-summary.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/current-pregnancy.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/current-pregnancy.component.tsx
Show resolved
Hide resolved
packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/current-pregnancy.component.tsx
Show resolved
Hide resolved
packages/esm-ohri-pmtct-app/src/views/mch-summary/tabs/current-pregnancy.component.tsx
Outdated
Show resolved
Hide resolved
@arodidev please re-review again |
packages/esm-ohri-pmtct-app/src/views/mch-summary/mch-summary.component.tsx
Outdated
Show resolved
Hide resolved
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.
Thanks @lucyjemutai, LGTM
Requirements
OHRI-123 My PR title
.This pr address the following;
Populate 3 mamba report for the MNCH Summary ;
Screenshots
Related Issue
Other