Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
-
None
-
None
Description
Using the Condition endpoint, I was hitting errors when trying to hit the Condition endpoint with a custom representation like this:
custom:(uuid,display,clinicalStatus,onsetDate,endDate,additionalDetail,condition:(coded:(id,uuid)))
Throwing this into a unit test, I was able to reproduce the error. Investigating, it seems that when the CodedOrFreeTextConverter is invoked, it simply tries to get a representation of each individual property of the ConditionOrFreeText instance, using the same representation of (coded:(id,uuid)). Since the specificName property doesn't match these fields, it fails.
I'm not entirely sure how this all was originally designed to work in the framework, which has a lot of abstractions and inheritance, but this seems like a bug.