@@ -1199,6 +1199,12 @@ export type ForeignKeyError = DeleteInboundShipmentLineErrorInterface & DeleteIn
1199
1199
key : ForeignKey ;
1200
1200
} ;
1201
1201
1202
+ export type FormSchemaConnector = {
1203
+ __typename : 'FormSchemaConnector' ;
1204
+ nodes : Array < FormSchemaNode > ;
1205
+ totalCount : Scalars [ 'Int' ] [ 'output' ] ;
1206
+ } ;
1207
+
1202
1208
export type FormSchemaFilterInput = {
1203
1209
id ?: InputMaybe < EqualFilterStringInput > ;
1204
1210
type ?: InputMaybe < EqualFilterStringInput > ;
@@ -1212,6 +1218,22 @@ export type FormSchemaNode = {
1212
1218
uiSchema : Scalars [ 'JSON' ] [ 'output' ] ;
1213
1219
} ;
1214
1220
1221
+ export type FormSchemaResponse = FormSchemaConnector ;
1222
+
1223
+ export enum FormSchemaSortFieldInput {
1224
+ Id = 'id'
1225
+ }
1226
+
1227
+ export type FormSchemaSortInput = {
1228
+ /**
1229
+ * Sort query result is sorted descending or ascending (if not provided the default is
1230
+ * ascending)
1231
+ */
1232
+ desc ?: InputMaybe < Scalars [ 'Boolean' ] [ 'input' ] > ;
1233
+ /** Sort query result by `key` */
1234
+ key : FormSchemaSortFieldInput ;
1235
+ } ;
1236
+
1215
1237
export type FullSyncStatusNode = {
1216
1238
__typename : 'FullSyncStatusNode' ;
1217
1239
error ?: Maybe < SyncErrorNode > ;
@@ -1522,10 +1544,13 @@ export type InsertOutboundShipmentUnallocatedLineResponseWithId = {
1522
1544
} ;
1523
1545
1524
1546
export type InsertPatientInput = {
1525
- /** Patient document data */
1526
- data : Scalars [ 'JSON' ] [ 'input' ] ;
1527
- /** The schema id used for the patient data */
1528
- schemaId : Scalars [ 'String' ] [ 'input' ] ;
1547
+ code : Scalars [ 'String' ] [ 'input' ] ;
1548
+ code2 ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
1549
+ dateOfBirth ?: InputMaybe < Scalars [ 'NaiveDate' ] [ 'input' ] > ;
1550
+ firstName ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
1551
+ gender ?: InputMaybe < GenderInput > ;
1552
+ id : Scalars [ 'String' ] [ 'input' ] ;
1553
+ lastName ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
1529
1554
} ;
1530
1555
1531
1556
export type InsertPatientResponse = PatientNode ;
@@ -1590,6 +1615,15 @@ export type InsertProgramEnrolmentInput = {
1590
1615
1591
1616
export type InsertProgramEnrolmentResponse = ProgramEnrolmentNode ;
1592
1617
1618
+ export type InsertProgramPatientInput = {
1619
+ /** Patient document data */
1620
+ data : Scalars [ 'JSON' ] [ 'input' ] ;
1621
+ /** The schema id used for the patient data */
1622
+ schemaId : Scalars [ 'String' ] [ 'input' ] ;
1623
+ } ;
1624
+
1625
+ export type InsertProgramPatientResponse = PatientNode ;
1626
+
1593
1627
export type InsertProgramRequestRequisitionError = {
1594
1628
__typename : 'InsertProgramRequestRequisitionError' ;
1595
1629
error : InsertProgramRequestRequisitionErrorInterface ;
@@ -2325,6 +2359,7 @@ export type Mutations = {
2325
2359
insertOutboundShipmentLine : InsertOutboundShipmentLineResponse ;
2326
2360
insertOutboundShipmentServiceLine : InsertOutboundShipmentServiceLineResponse ;
2327
2361
insertOutboundShipmentUnallocatedLine : InsertOutboundShipmentUnallocatedLineResponse ;
2362
+ /** Inserts a new patient (without document data) */
2328
2363
insertPatient : InsertPatientResponse ;
2329
2364
insertPrescription : InsertPrescriptionResponse ;
2330
2365
insertPrescriptionLine : InsertPrescriptionLineResponse ;
@@ -2333,12 +2368,18 @@ export type Mutations = {
2333
2368
* Every patient can only have one program document of each program type.
2334
2369
*/
2335
2370
insertProgramEnrolment : InsertProgramEnrolmentResponse ;
2371
+ /**
2372
+ * Inserts a new program patient, i.e. a patient that can contain additional information stored
2373
+ * in a document.
2374
+ */
2375
+ insertProgramPatient : InsertProgramPatientResponse ;
2336
2376
insertProgramRequestRequisition : InsertProgramRequestRequisitionResponse ;
2337
2377
insertRepack : InsertRepackResponse ;
2338
2378
insertRequestRequisition : InsertRequestRequisitionResponse ;
2339
2379
insertRequestRequisitionLine : InsertRequestRequisitionLineResponse ;
2340
2380
insertStocktake : InsertStocktakeResponse ;
2341
2381
insertStocktakeLine : InsertStocktakeLineResponse ;
2382
+ /** Links a patient to a store and thus effectively to a site */
2342
2383
linkPatientToStore : LinkPatientToStoreResponse ;
2343
2384
manualSync : Scalars [ 'String' ] [ 'output' ] ;
2344
2385
/** Set supply quantity to requested quantity */
@@ -2357,11 +2398,17 @@ export type Mutations = {
2357
2398
updateOutboundShipmentName : UpdateOutboundShipmentNameResponse ;
2358
2399
updateOutboundShipmentServiceLine : UpdateOutboundShipmentServiceLineResponse ;
2359
2400
updateOutboundShipmentUnallocatedLine : UpdateOutboundShipmentUnallocatedLineResponse ;
2401
+ /** Updates a new patient (without document data) */
2360
2402
updatePatient : UpdatePatientResponse ;
2361
2403
updatePrescription : UpdatePrescriptionResponse ;
2362
2404
updatePrescriptionLine : UpdatePrescriptionLineResponse ;
2363
2405
/** Updates an existing program document belonging to a patient. */
2364
2406
updateProgramEnrolment : UpdateProgramEnrolmentResponse ;
2407
+ /**
2408
+ * Updates a new program patient, i.e. a patient the can contain additional information stored
2409
+ * in a document.
2410
+ */
2411
+ updateProgramPatient : UpdateProgramPatientResponse ;
2365
2412
updateRequestRequisition : UpdateRequestRequisitionResponse ;
2366
2413
updateRequestRequisitionLine : UpdateRequestRequisitionLineResponse ;
2367
2414
updateResponseRequisition : UpdateResponseRequisitionResponse ;
@@ -2631,6 +2678,12 @@ export type MutationsInsertProgramEnrolmentArgs = {
2631
2678
} ;
2632
2679
2633
2680
2681
+ export type MutationsInsertProgramPatientArgs = {
2682
+ input : InsertProgramPatientInput ;
2683
+ storeId : Scalars [ 'String' ] [ 'input' ] ;
2684
+ } ;
2685
+
2686
+
2634
2687
export type MutationsInsertProgramRequestRequisitionArgs = {
2635
2688
input : InsertProgramRequestRequisitionInput ;
2636
2689
storeId : Scalars [ 'String' ] [ 'input' ] ;
@@ -2786,6 +2839,12 @@ export type MutationsUpdateProgramEnrolmentArgs = {
2786
2839
} ;
2787
2840
2788
2841
2842
+ export type MutationsUpdateProgramPatientArgs = {
2843
+ input : UpdateProgramPatientInput ;
2844
+ storeId : Scalars [ 'String' ] [ 'input' ] ;
2845
+ } ;
2846
+
2847
+
2789
2848
export type MutationsUpdateRequestRequisitionArgs = {
2790
2849
input : UpdateRequestRequisitionInput ;
2791
2850
storeId : Scalars [ 'String' ] [ 'input' ] ;
@@ -3339,7 +3398,7 @@ export type Queries = {
3339
3398
documents : DocumentResponse ;
3340
3399
encounterFields : EncounterFieldsResponse ;
3341
3400
encounters : EncounterResponse ;
3342
- formSchema ?: Maybe < FormSchemaNode > ;
3401
+ formSchemas : FormSchemaResponse ;
3343
3402
/** Available without authorisation in operational and initialisation states */
3344
3403
initialisationStatus : InitialisationStatusNode ;
3345
3404
insertPrescription : InsertPrescriptionResponse ;
@@ -3499,8 +3558,10 @@ export type QueriesEncountersArgs = {
3499
3558
} ;
3500
3559
3501
3560
3502
- export type QueriesFormSchemaArgs = {
3561
+ export type QueriesFormSchemasArgs = {
3503
3562
filter ?: InputMaybe < FormSchemaFilterInput > ;
3563
+ page ?: InputMaybe < PaginationInput > ;
3564
+ sort ?: InputMaybe < Array < FormSchemaSortInput > > ;
3504
3565
} ;
3505
3566
3506
3567
@@ -4807,12 +4868,19 @@ export type UpdateOutboundShipmentUnallocatedLineResponseWithId = {
4807
4868
response : UpdateOutboundShipmentUnallocatedLineResponse ;
4808
4869
} ;
4809
4870
4871
+ /**
4872
+ * All fields in the input object will be used to update the patient record.
4873
+ * This means that the caller also has to provide the fields that are not going to change.
4874
+ * For example, if the last_name is not provided, the last_name in the patient record will be cleared.
4875
+ */
4810
4876
export type UpdatePatientInput = {
4811
- /** Patient document data */
4812
- data : Scalars [ 'JSON' ] [ 'input' ] ;
4813
- parent : Scalars [ 'String' ] [ 'input' ] ;
4814
- /** The schema id used for the patient data */
4815
- schemaId : Scalars [ 'String' ] [ 'input' ] ;
4877
+ code : Scalars [ 'String' ] [ 'input' ] ;
4878
+ code2 ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
4879
+ dateOfBirth ?: InputMaybe < Scalars [ 'NaiveDate' ] [ 'input' ] > ;
4880
+ firstName ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
4881
+ gender ?: InputMaybe < GenderInput > ;
4882
+ id : Scalars [ 'String' ] [ 'input' ] ;
4883
+ lastName ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
4816
4884
} ;
4817
4885
4818
4886
export type UpdatePatientResponse = PatientNode ;
@@ -4886,6 +4954,16 @@ export type UpdateProgramEnrolmentInput = {
4886
4954
4887
4955
export type UpdateProgramEnrolmentResponse = ProgramEnrolmentNode ;
4888
4956
4957
+ export type UpdateProgramPatientInput = {
4958
+ /** Patient document data */
4959
+ data : Scalars [ 'JSON' ] [ 'input' ] ;
4960
+ parent : Scalars [ 'String' ] [ 'input' ] ;
4961
+ /** The schema id used for the patient data */
4962
+ schemaId : Scalars [ 'String' ] [ 'input' ] ;
4963
+ } ;
4964
+
4965
+ export type UpdateProgramPatientResponse = PatientNode ;
4966
+
4889
4967
export type UpdateRequestRequisitionError = {
4890
4968
__typename : 'UpdateRequestRequisitionError' ;
4891
4969
error : UpdateRequestRequisitionErrorInterface ;
0 commit comments