Gateway loads countryconfig form.json and stores in a global variable. We need a mapping between FHIR and the form.json. Can't we use type-resolvers for this?
EventNotification API generated FHIR should compare the field value with supported select options in the form json and ensure that they are supported by our form.
Before posting the FHIR payload to Hearth from fhir-builders, perform the same check, thus validating the GraphQL API too.
[ ] Load forms into gateway and store in a global variable so that they can be used for validation
[ ] Use type-resolver functions to map FHIR to form fields so you can use that to map to the required select option?
[ ] Validate select options that arrive in the API with the mapped form field
Gateway loads countryconfig form.json and stores in a global variable. We need a mapping between FHIR and the form.json. Can't we use type-resolvers for this?
EventNotification API generated FHIR should compare the field value with supported select options in the form json and ensure that they are supported by our form.
Before posting the FHIR payload to Hearth from fhir-builders, perform the same check, thus validating the GraphQL API too.