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

update hpt-pharmaceuticals andnon- hpt-pharmaceuticals #152

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

lucyjemutai
Copy link
Collaborator

image

image

Comment on lines +118 to +121
cascadeUrl = `${API_BASE_URL}/orgs/MOH-KENYA/sources/PPB/concepts/10-00000-02/$cascade/?cascadeLevels=1&method=sourceToConcepts&view=hierarchy&reverse=true&includeRetired=false`;
} else if (domain === "hpt-pharmaceuticals") {
// Use cascade query URL for HPT-pharmaceuticals
cascadeUrl = `${API_BASE_URL}/orgs/MOH-KENYA/sources/PPB/concepts/10-00000-01/$cascade/?cascadeLevels=1&method=sourceToConcepts&view=hierarchy&reverse=true&includeRetired=false`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@lucyjemutai - Can we extract this to the domains json and reference them here as an attribute of a domain instead of directly referencing them this way? like domain.cascadeUrl

Comment on lines 129 to 131
setConcepts(filteredConcepts);
setCurrentConcepts(filteredConcepts);
setIsLoadingConcepts(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

These seem removed from the new if (cascadeUrl) condition. We need to keep the if block uniform with the else as pertains these setters

@lucyjemutai lucyjemutai requested a review from alaboso November 6, 2024 09:07
@lucyjemutai lucyjemutai merged commit 1227b06 into moh-kenya:dev Nov 13, 2024
1 of 2 checks passed
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