avniproject / integration-service

Service for integration Avni with other systems
GNU Affero General Public License v3.0
0 stars 2 forks source link

Make use of inputCategory while initializing Student Data for CodedConcepts #101

Closed himeshr closed 11 months ago

himeshr commented 1 year ago

In Glific forms, for selectable fields, user can either specify the "Option ID" or a case-insensitive "Option value" as the input. Therefore, the Flow_result we received, could have the inputValue for CodedConcepts in a different case than that configured in the MappingMetadata table.

Probable Fix To handle this, make use of inputCategory while initializing Student Data for CodedConcepts. In DataExtractorService.getResultData(), map tuple of [inputCategory, inputValue] as the value, and while populating codedConcept observation use inputCategory, otherwise use inputValue everywhere else.

Acceptance Criteria

vinayvenu commented 1 year ago

This was complete as part of #102