Hi Rochana,=20
The class ca.uhn.hl7v2.util.Terser provides a version-independent way
to get and set field values.
It handles some changes between versions automatically, for example if
a primitive turns into a composite, then requests for the primitive
are interpreted as requests for the first component (which according
to HL7 rules is supposed to have the same meaning). If the segment
grouping changes between versions though, you have to handle the
different cases in your own code.
Bryan=20
On 7/7/05, Rochana Attale <ro...@lk...> wrote:
>=20
>=20
> Hi,
>=20
> =20
>=20
> I have to process HL7 files that come in different versions. How do I han=
dle
> this as HAPI defines data types per version (e.g.
> ca.uhn.hl7v2.model.v23.datatype,
> ca.uhn.hl7v2.model.v231.datatype,
> ca.uhn.hl7v2.model.v24.datatype) ?
>=20
> =20
>=20
> Rochana.
|