No ADT_A40 for version 2.4?

Help
2011-10-19
2013-05-13
  • No ADT_A40 for version 2.4?

     
  • ChadC
    ChadC
    2011-10-19

    It looks like ADT_A40 uses the A39 message structure. 

     
  • The problem is that it give 'GenericMessage+V24' when checking for Message.GetStructureName() and not ADT_A40.

    How can I check that this is an ADT_A40?
    Also when doing:
    NHapi.Model.V24.Message.ADT_A39 msg_V24 = (NHapi.Model.V24.Message.ADT_A39)message;
    It is giving an error that cant convert from A30 to A39.

    Please help.

     
  • Sorry the error is:
    error that cant convert from A40 to A39.

     
  • ChadC
    ChadC
    2011-10-20

    Can you post a sample message?

     
  • MSH|^~\\&|CLINICOM|TOREX|SOFTECH|NOMAD|20111020100745||ADT^A40|20501558|P|2.4|||NE||GB||en\r
    EVN|A40|20111020100745\r
    PID|1|6333333337^^^NHS^NHS|BBB4076541^^^EL^PIMS~6230065517^^^NHS^NHS||GATHIA^HURI SMITH^^^MRS||19420601|F|||20 HIGH STREET^BLACKBURN^LANCS^^BB1 9ZZ^^H^^Q31|Q31|01254 661892|||U|U|||||H||||||||N\r
    PD1|||^^P81643|G9999997^BAX^Z^^^DR\r
    MRG|RRR0360449^^^EL^PIMS||||||GATIA^HARI^^^MRS\r

     
  • I just recompile NHapi.Model.V24, add the A40 using A39.
    It is working as far as I can see - for now.