The ??INCLUDEIF?? Tag

<< Click to Display Table of Contents >>

Navigation:  Designing Templates > Template HTML > HL7 Tag Shorthand >

The ??INCLUDEIF?? Tag

The ??INCLUDEIF??----??ENDIF?? Tag

 

The INCLUDEIF tags are for conditionally inserting either specific values from your HL7 message into your Templates OR even entire blocks of HTML based on the content of the HL7 Message itself. In HTML terms you will treat them as you would any any other BLOCK HTML tag (like <p></p> or <div></div>).

 

Case Sensitivity Rules: Parts of INCLUDEIF tags are case sensitive while others are not.

 

Example:

 

??INCLUDEIF ifvalue1="MSH.3.1" iflogic1="isequalto.Labcorp,Quest"??

{Other HTML Code}

??ENDIF??

 

RED = Case Sensitive BLUE = Not Case Sensitive

 

Examples:

 

??INCLUDEIF ifvalue1="MSH.3.1" iflogic1="isequalto.Labcorp,Quest"?? ALL HTML between the INCLUDEIF and the ENDIF shorthand will only be included in the final rendered document IF the value in Field #3, Component # 1 of the MSH segment (the sending application) is equal to either "Labcorp" or "Quest".

??INCLUDEIF ifvalue1="IN1" iflogic1="Exists"?? ALL HTML between the INCLUDEIF and the ENDIF shorthand will only be included in the final rendered document IF the HL7 message contains at least 1 IN1 (insurance) segment.

??INCLUDEIF ifvalue1="MSH.3.1" iflogic1="beginswith.Quest" ifvalue2="PID.5.1" iflogic2="isequalto.Smith" logictype="OR"?? ALL HTML between the INCLUDEIF and the ENDIF shorthand will only be included in the final rendered document IF the value in Field #3, Component # 1 of the MSH segment (the sending application) is begins with "Quest" OR if the Patient Last Name (PID.5.1) is "Smith".

 

Operators and Syntax for INCLUDEIF operationsINCLUDEIF 'iflogic' Values