Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance Validator gives observation warnings #942

Closed
patrick-werner opened this issue May 13, 2018 · 2 comments
Closed

Instance Validator gives observation warnings #942

patrick-werner opened this issue May 13, 2018 · 2 comments

Comments

@patrick-werner
Copy link
Member

patrick-werner commented May 13, 2018

InstanceValidator throws various warnings in validateObservation, e.g.: "All observations should have a subject"

here:
https://github.com/jamesagnew/hapi-fhir/blob/23a01b5f18fc3d33aff39200fda459066d359b9f/hapi-fhir-validation/src/main/java/org/hl7/fhir/r4/validation/InstanceValidator.java#L3620-L3627

and here:
https://github.com/jamesagnew/hapi-fhir/blob/6468ca474a30a37b1747ea0cdb532fe680074bbf/hapi-fhir-validation/src/main/java/org/hl7/fhir/instance/validation/InstanceValidator.java#L1857-L1864

Looking at the FHIR spec these aren't mandatory and therefore we are confused why hapi is enforcing something out of spec.

@jamesagnew
Copy link
Collaborator

FWIW, these are "best practices" that are optional in InstanceValidator. As of the latest RI sync, these are no longer enabled by default.

We should probably have some documentation, and perhaps a link to what they actually refer to.

TBH I have no idea where (if at all) these best practices are documented

@patrick-werner
Copy link
Member Author

Setting default to disable sounds good. I opened a GF Tracker item to add best practice documentation:
GF 17147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants