Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-909

Condition resource fails when using a custom representation of codedOrNonCoded

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • 2.40.0
    • 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.

      Gliffy Diagrams

        Attachments

          Activity

            People

              mseaton Mike Seaton
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: