Constraints/Restrictions on Resources using Profiles in DSTU2

146 views
Skip to first unread message

swapna.k...@gmail.com

unread,
Jun 16, 2015, 7:58:45 AM6/16/15
to hapi...@googlegroups.com
Hi,

Can we implement Constraints on resources using profiles in HAPI FHIR 1.0 server? 
I have seen an earlier post which says we can only extend resources but cannot add constraints. Does this still hold true in HAPI FHIR 1.0? 
If not could you please provide a reference to an example?

Regards,
Swapna

James Agnew

unread,
Jun 22, 2015, 7:51:26 AM6/22/15
to swapna.k...@gmail.com, hapi...@googlegroups.com
Hi Swapna,

Unfortunately yes, this is still the case. This is still on our roadmap, but we haven't really worked on it yet.

We will be announcing very soon the first builds of HAPI that are integrated with the reference implementation code from HL7.org. This will bring with it the profile validator, which can be used to at least check at runtime whether a given resource is valid against a constraining profile. I'm hoping in the medium term we'll have a static/compile time solution too.

Cheers,
James


--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/58e81f88-cbb3-4796-a28a-e48cb656fd0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tra...@isalussolutions.com

unread,
Aug 5, 2015, 3:53:51 PM8/5/15
to HAPI FHIR, swapna.k...@gmail.com
Hi, 

Is there any update to this feature?  When do you expect constraints on profiles to be offered?

Thanks,
Travis Cummings

lauraher...@gmail.com

unread,
Jan 26, 2016, 1:30:54 PM1/26/16
to HAPI FHIR, swapna.k...@gmail.com, tra...@isalussolutions.com
Is there any updates on constraining using profiles for HAPI DSTU2?

James Agnew

unread,
Feb 2, 2016, 9:53:20 PM2/2/16
to lauraher...@gmail.com, HAPI FHIR, Swapna Kalagarla, Travis Cummings
Hi Laura (and all),

Unfortunately there still isn't any progress from the HAPI project directly on generating static definition classes using FHIR profiles as input. We've been spending all of our effort integrating the HL7 DSTU2.1 (now DSTU3) structures into the library, and this has turned out to be a massive task. The good news is that this work is done, which means that it should be easier than ever for DSTU3 users to do runtime validation (the profile validator has had many improvements since DSTU2).

I've heard that Claude Nanjo demo'ed some code generation stuff at the Orlando WGM but I haven't had a chance yet to chat with him about this. There is also this awesome effort from Jens Kristian Villadsen at writing a profile compiler for HAPI that was started at DevDays in November. Hopefully we'll get one of these things integrated soon.

Cheers,
James

Reply all
Reply to author
Forward
0 new messages