On Wednesday 05 August 2009 05:00:59 pm James Agnew wrote: > Hi Serbulent, >
Hi again, > > I thought that field value restrictions are supported with conformance >>profiles. > > > Beyond that regex definition of fields is also covered by conformance >>profiles but I don't know these are covered ( with automatic validation ) by > > Hapi's conformance profile support or not. > > Well that's interesting. To be honest, I didn't know that regex field > definitions were possible in conformance profiles, I've never used that > feature. I'm almost positive that HAPI doesn't support it, but it would be > very easy to add. (I can help in any way you like if needed) > I first saw them in a profile created by MWB. I don't know whether they are in the conformance profile spec or not but they can be very useful when you are validating a conformance profile. I'll appriciate if u add validation support for them. > It sounds like you've got a good solution in mind, I guess the only > outstanding thing is the issue of cross checking values like the EVN-1 > example you gave. I guess the simplest way to do that would be to write > your own Validator with if/else checks in it (I'm assuming that's what you > already had in mind :) ). It would be really nice to come up with some way > a bit more automated to do it (XML definition files and a parser for > instance) but I don't know that this would end up being very flexible.. who > knows? Yep, first I was thought classical if-else checks to bussiness logic of our app but, an automated version for generic cross checks might be more useful. If we choose this way, I'll be happy to share the code for adding it to hapi. > > > For now runtime validation is enough for me I think. > > I guess the big advantage to using conformance profiles is that if you > decide you want to do compile time validating in the future, you can get at > least some of it from the conformance classes generator in HAPI. > Thanx for guidance > Good luck! > > Cheers, > James Regards, -- Serbulent Unsal | Software Expert GSM : +90 555 697 50 46 | Tel : +90.312.478 48 00 Akgun Softwares & Services Pvt. Ltd. Çetin Emeç Bulv. 4. Cad. No:5/3 06460 A.Öveçler / ANKARA This e-mail and its attachments are private and confidential to the exclusive use of the individual or entity to whom it is addressed. It may also be legally confidential. Any disclosure, distribution or other dissemination of this message to any third party is strictly prohibited. If you are not the intended recipient, you may not copy, forward, send or use any part of it. If you are not the intended recipient or the person who is responsible to transmit to the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and its attachments. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

