Data Value Sets: outputOrgUnitIdScheme not working correctly?

According to the documentation “outputOrgUnitIdScheme” is a valid parameter for the Analytics endpoint however I am not able to get Codes returned.

See here for reproduction on Play. I would expect to see the value of “orgUnit” to be OU_539 as the Code shows here: DHIS 2 Demo - Sierra Leone




I agree. I get the same results on all three versions, and it looks like a bug to me. Please write a Jira ticket if you would.

outputDataElementIdScheme appears to be similarly broken. Both should be fixed.

However outputIdScheme=CODE works. This sets the scheme for both output orgUnits and dataElements. If you don’t mind having both of them returned as codes, this might be a workaround for you for now.

1 Like

Thanks for validating Jim. Ticket here: Log in - DHIS 2 JIRA

We may be able to work out adding code mappings to the data elements between the two servers that we are integrating.

1 Like