pepfar-datim / mAtches

Data source to target mapping utility
Apache License 2.0
3 stars 1 forks source link

Handle different structure of valueSets #95

Closed tomzemp closed 3 years ago

tomzemp commented 4 years ago

valueSet for the family planning does not work with mAtches as the structure of the valueSet is structured differently from gender valueSet (https://test.ohie.datim.org/hapi-fhir-jpaserver/fhir/ValueSet/PLM-FP-Modern-Methods).

Should be able to support both formats

(from @vshioshvili)

tomzemp commented 3 years ago

Implemented. This required implementing a chained request.

  1. First to retrieve ValueSet based on URL specified in Questionnaire   (e.g.) https://test.ohie.datim.org/hapi-fhir-jpaserver/fhir/ValueSet?url=http://hl7.org/fhir/ValueSet/administrative-gender&_format=json

  2. Then retrieving the ValueSet's ID and retrieving the ValueSet with that ID:   (e.g.) https://test.ohie.datim.org/hapi-fhir-jpaserver/fhir/ValueSet/57/$expand?_format=json

valueSets