ca.uhn.fhir.parser.DataFormatException: scheduled has type com.sij.fhirbug.CustomTimingDt but this is not a valid type for this element - Expected one of: [class com.sij.fhirbug.CustomTimingDt]

GitHub | sjanic | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cannot parse custom ProcedureRequest with custom TimingDt

    GitHub | 8 months ago | sjanic
    ca.uhn.fhir.parser.DataFormatException: scheduled has type com.sij.fhirbug.CustomTimingDt but this is not a valid type for this element - Expected one of: [class com.sij.fhirbug.CustomTimingDt]

    Root Cause Analysis

    1. ca.uhn.fhir.parser.DataFormatException

      scheduled has type com.sij.fhirbug.CustomTimingDt but this is not a valid type for this element - Expected one of: [class com.sij.fhirbug.CustomTimingDt]

      at ca.uhn.fhir.parser.BaseParser.throwExceptionForUnknownChildType()
    2. HAPI FHIR - Core Library
      BaseParser.encodeResourceToString
      1. ca.uhn.fhir.parser.BaseParser.throwExceptionForUnknownChildType(BaseParser.java:895)
      2. ca.uhn.fhir.parser.BaseParser.getChildNameAndDef(BaseParser.java:436)
      3. ca.uhn.fhir.parser.JsonParser.encodeCompositeElementChildrenToStreamWriter(JsonParser.java:615)
      4. ca.uhn.fhir.parser.JsonParser.encodeCompositeElementToStreamWriter(JsonParser.java:764)
      5. ca.uhn.fhir.parser.JsonParser.encodeResourceToJsonStreamWriter(JsonParser.java:900)
      6. ca.uhn.fhir.parser.JsonParser.encodeResourceToJsonStreamWriter(JsonParser.java:803)
      7. ca.uhn.fhir.parser.JsonParser.doEncodeResourceToWriter(JsonParser.java:214)
      8. ca.uhn.fhir.parser.BaseParser.encodeResourceToWriter(BaseParser.java:365)
      9. ca.uhn.fhir.parser.BaseParser.encodeResourceToString(BaseParser.java:349)
      9 frames
    3. com.sij.fhirbug
      CustomProcedureRequestMain.main
      1. com.sij.fhirbug.CustomProcedureRequestMain.main(CustomProcedureRequestMain.java:19)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame