FHIR Chat · Questionnaire - DSTU3 · implementers

Stream: implementers

Topic: Questionnaire - DSTU3


view this post on Zulip Stephen Lloyd (Jul 24 2017 at 12:09):

Hi,

Is there a known mismatch between the java xmlparser to http://hapifhir.io/apidocs-dstu3/org/hl7/fhir/dstu3/model/Questionnaire.html and the validator? The class docs show that Questionnaire is derived from MetadataResource but it seems to be derived directly from DomainResource in my experience in java.
The issue is that there seems to be a 'dispute' between PublicationStatus & QuestionnaireStatus when parsing, the java parser expects the status to be "published" but the post to HAPI via java (or posting with postman) expects it to be "active". Is it just the documentation that is wrong or is there a known issue?

Cheers,
Stephen

view this post on Zulip Lloyd McKenzie (Jul 24 2017 at 19:09):

The formal parent is DomainResource. MetadataResource is a pattern that's used in the publication process for alignment and re-use, but doesn't reflect a formal inheritance relationship.

view this post on Zulip Grahame Grieve (Jul 25 2017 at 02:55):

that doesn't actually answer the question though

view this post on Zulip Lloyd McKenzie (Jul 25 2017 at 04:28):

"active" is correct. If hapi is expecting something else - and you're using the STU3 version, something is broken.

view this post on Zulip Stephen Lloyd (Jul 25 2017 at 10:54):

I think I've found the problem (& it's me, well I don't want to claim all the credit so "us" :) ), it appears there was a mismatch between the server & the pom dependencies. I was using the maven version 2.3 for the java dependencies which seemed to still use QuestionnaireStatus. Thanks for the information.


Last updated: Apr 12 2022 at 19:14 UTC