Skip to content

Commit

Permalink
Merge pull request #132 from Rugute/dev
Browse files Browse the repository at this point in the history
(feat) added the Billing and eClaims endPoints
  • Loading branch information
Rugute authored May 3, 2024
2 parents baeae3a + dff2860 commit 3358920
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_API_URL=http://41.89.92.186:8000
APP_DEBUG=true
USE_MOCK_API=false
7 changes: 5 additions & 2 deletions pages/api/domains/domains.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
{
"id": "billing",
"name": "Billing & eClaims Management",
"apiUrls": [],
"apiUrls": ["/orgs/MOH-KENYA/sources/DDH/"],
"icon": "bill",
"metadata": {}
"metadata": {
"subdomainQueryParam": "conceptClass=Subdomain",
"cascadeQueryParam": "$cascade/?cascadeLevels=1&view=hierarchy&reverse=true&includeRetired=false"
}
},
{
"id": "hrh",
Expand Down
3 changes: 2 additions & 1 deletion pages/orgs/[org]/domains/[domain]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function OrgDomainsList() {
const fetchConcepts = (subdomain) => {
setIsLoadingConcepts(true);
setIsLoading(true);
let url = "/api/concepts/?q="; // ?domain=' + domain;
//let url = "/api/concepts/?q="; // ?domain=' + domain;
let url = "/api/concepts/"; // ?domain=' + domain;
if (subdomain) url = url + "?subdomainurl=" + subdomain + "&page=" + page;
fetch(url)
.then((response) => {
Expand Down

0 comments on commit 3358920

Please sign in to comment.