Skip to content

Commit 650c211

Browse files
authored
Merge pull request #46 from ArkeupIDComores/feature-10
feat: add polygamous family support with sub-household management
2 parents c20d01a + 98f9382 commit 650c211

23 files changed

Lines changed: 2651 additions & 329 deletions

claimManagement/src/main/graphql/org.openimis.imisclaim/GetFamiliesWithParent.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
query GetFamiliesWithParent($parent_Uuid: String!) {
2-
families(parent_Uuid: $parent_Uuid, first: 20) {
1+
query GetFamiliesWithParent($parent_Uuid: String!, $first: Int, $after: String, $showHistory: Boolean) {
2+
families(parent_Uuid: $parent_Uuid, first: $first, after: $after, showHistory: $showHistory) {
33
totalCount
44
pageInfo {
55
hasNextPage
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
query GetFamiliesWithParentId($parent_Id: String, $first: Int, $after: String, $showHistory: Boolean) {
2+
families(parent_Uuid: $parent_Id, first: $first, after: $after, showHistory: $showHistory) {
3+
totalCount
4+
pageInfo {
5+
hasNextPage
6+
hasPreviousPage
7+
startCursor
8+
endCursor
9+
}
10+
edges {
11+
node {
12+
id
13+
uuid
14+
confirmationNo
15+
address
16+
parent {
17+
id
18+
uuid
19+
familyType {
20+
code
21+
}
22+
headInsuree {
23+
uuid
24+
}
25+
}
26+
headInsuree {
27+
id
28+
uuid
29+
chfId
30+
lastName
31+
otherNames
32+
gender {
33+
code
34+
}
35+
dob
36+
photo {
37+
id
38+
photo
39+
}
40+
}
41+
location {
42+
id
43+
uuid
44+
code
45+
name
46+
}
47+
}
48+
}
49+
}
50+
}

claimManagement/src/main/graphql/org.openimis.imisclaim/GetFamilyWithType.graphql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@ query GetFamilyWithType($uuid: String!) {
4848
code
4949
type
5050
}
51+
headInsuree {
52+
id
53+
uuid
54+
chfId
55+
lastName
56+
otherNames
57+
gender {
58+
code
59+
gender
60+
}
61+
dob
62+
photo {
63+
id
64+
photo
65+
}
66+
}
5167
}
5268
}
5369
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
query GetSubFamilyHeads($parent_Uuid: String, $parent_Id: ID, $first: Int, $after: String, $showHistory: Boolean) {
2+
families(parent_Uuid: $parent_Uuid, parent_Id: $parent_Id, first: $first, after: $after, showHistory: $showHistory) {
3+
totalCount
4+
pageInfo {
5+
hasNextPage
6+
hasPreviousPage
7+
startCursor
8+
endCursor
9+
}
10+
edges {
11+
node {
12+
id
13+
uuid
14+
confirmationNo
15+
address
16+
parent {
17+
id
18+
uuid
19+
familyType {
20+
code
21+
}
22+
headInsuree {
23+
uuid
24+
}
25+
}
26+
headInsuree {
27+
id
28+
uuid
29+
chfId
30+
lastName
31+
otherNames
32+
gender {
33+
code
34+
gender
35+
}
36+
dob
37+
photo {
38+
id
39+
photo
40+
}
41+
}
42+
location {
43+
id
44+
uuid
45+
code
46+
name
47+
}
48+
familyType {
49+
code
50+
type
51+
}
52+
}
53+
}
54+
}
55+
}

claimManagement/src/main/graphql/org.openimis.imisclaim/schema.graphqls

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)