This topic contains 4 replies, has 3 voices, and was last updated by  Jeff Drumm 9 months, 2 weeks ago.

Access Segment Descriptions from Script

  • Is the segment description accessible via script within Iguana?

    If so, can you provide an example?

    I don’t think we expose this programmatically.

    What about the option flags for a given field or segment regarding “Required” or “Optional”?

    Nope that isn’t exposed either I think…

    If you felt ambitious you could parse the XML of the VMD file itself and get access to this information from there.

    What is driving the need?

    While Optionality of fields isn’t exposed directly, it may be useful to look at the 3rd return value from the hl7.parse() method. This is a table of errors (including violation of the “required” attribute) that can provide useful validation information.

    Attachments:
    You must be logged in to view attached files.

    Jeff Drumm ◊ VP and COO ◊ HICG, LLC. ◊ http://www.hicgrp.com

You must be logged in to reply to this topic.