Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Validate against schema programatically

Question
sween · Apr 11, 2018

Validate against schema programatically

Hello,

I am running a transformDTL through COS that transforms an EDI document to JSON and would like to validate the document and throw an error if it does not validate or build a map.

I am looking at available methods and haven't been able to find one that sort of does:  Set tSC = ##class(*).Validate(tDoc,"HIPAA_5100").

Any help here would be appreciated, it seems like I am missing something simple.

#Ensemble

Source URL:https://community.intersystems.com/post/validate-against-schema-programatically