hl7 to xml help

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf hl7 to xml help

  • Creator
    Topic
  • #50075
    Alka Sharma
    Participant

      Hi Everyone,

      This is my first time writing an interface from Source HL7 to destination XML. Vendor has provided me with the schema (see attached) but I am constantly getting the following error:

      [0:TEST] Message encode warnings: Error generated during parsing. – Element ‘lastname’ is not valid for content

      My xlate has only one line of code:

      I am mapping one field from HL7 to one field of xml. I wanted to see if a a mapped field will work before I mapped every field.

      To make this work-Does every XML field in my output has to be mapped.

      I have creted my own XSD with MSH and PID and got it to work but I really would like the vendor xsd to work in cloverleaf.


    Viewing 2 reply threads
    • Author
      Replies
      • #64777
        Alka Sharma
        Participant

          here is vendor schema in txt

        • #64778
          Mark Thompson
          Participant

            Alka,

            It depends on your schema.  The error message shows that the schema has some contraints or rules about what the ‘lastname’ should look like.  Your translate will continue to fail until it sends a lastname that satisfies the schema.

            - Mark Thompson
            HealthPartners

          • #64779
            Alka Sharma
            Participant

              Thanks Mark! I figured out what was wrong.

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.