Hi Serbulent,

> 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)

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?

> 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.

Good luck!

Cheers,
James

On Mon, Aug 3, 2009 at 9:59 AM, Serbulent Unsal <
[email protected]> wrote:

> Hi Again,
>
> On Monday 27 July 2009 06:42:42 pm you wrote:
> > I have to say I'm at a bit of a loss. Because there is no electronic
> > representation of all of the restrictions you are after, there's
> definitely
> > no out-of-the-box way of doing this.
> >
> > Probably as you mentioned, using Conformance profiles would get you
> pretty
> > close, and you could then add any remaining field value restrictions
> using
> > validators.
> >
>
> 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.
>
> > I've been thinking of enhancing the validation API for a while to give
> > validators the ability to know which field/segment specifically they are
> > validating, so that for instance you could have different valuesets
> allowed
> > for different CE fields, etc. If you wanted to go this route I'd be more
> > than happy to help make the required changes to the validation api to get
> > you going.
> >
>
> I'm not sure for that because if all conformance profile is covered then I
> need
> only cross cheking between fields like i.e.  " Field EVN-1 Event Type Code
> is
> optional; however, if present, its value shall be equal to the second
> component of the field MSH-9 Message Type." etc.
>
> > Incidentally, are you looking to runtime validation or compile time or
> > both?
>
> For now runtime validation is enough for me I think.
>
> Best 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
>
------------------------------------------------------------------------------
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

Reply via email to