{
“httpStatus”: “Internal Server Error”,
“httpStatusCode”: 500,
“status”: “ERROR”,
“message”: “Cannot construct instance of org.hisp.dhis.category.CategoryCombo (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value (‘bjDvmb4bfuf’)\n at [Source: (org.apache.catalina.connector.CoyoteInputStream); line: 4, column: 34] (through reference chain: org.hisp.dhis.dataelement.DataElement["categoryCombo"])”
}
I am building a django module for the openimis initiative,
it is based on dhis2.py and I took and expand models based on pydantic I found on the dhis2 repos
Basically it enable you to work with django queryset paginator and pydantic enforce some contrainst on the fields (I have still to improve that part to ensure the text fields are not too long)
the only specific data is in services.py, views.py and the convertors
if it is useful for other I could check how to publish a generic version on pip