The XML4Pharma Application Server

Rule FDA018 in XQuery using RESTful web service

Description: NULL value in variable marked as Required

This rule implementation is very similar to the previous one, but in this case, a "lookup" from a RESTful webservice, described here is used to find out whether the variable is "required", "expected" or "permissible". This web service is a precursor of the RESTful web services that will be provided by SHARE in the future.
So in this case, the implementation does NOT rely on whether the "Mandatory" attribute has the correct value in the define.xml

The rule written in XQuery (first part):

Explanation

The second part of the rule in XQuery:

The third part of the rule in XQuery:


Courtesy of XML4Pharma - last update: May 2016