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

Home > How To Pass Custom Class

Question
Warren Oyco · Jul 27, 2021

How To Pass Custom Class

I've created a custom class that extends to the standard  HS.Message.PatientSearchRequest. Inside the custom class i just want to pass the data as input only.

But i am getting ERROR #6277: Type attribute, s01:AcoPatientSearchRequest, does not specify valid type for XML input tag: pRequest (ending at line 5 character 171)
</error>

I tried adding Parameter XMLIGNOREINVALIDTAG = 1; and

Parameter XMLSEQUENCE = 0;

but does not seem to work. 

 

Class MC.ACO.Message.AcoPatientSearchRequest Extends HS.Message.PatientSearchRequest [ ClassType = persistent, Inheritance = right, ProcedureBlock ]
{

Parameter XMLIGNOREINVALIDTAG = 1;


Property RosterEffDate As %String;

Property RosterTermDate As %String; Storage Default
{
<Data name="AcoPatientSearchRequestDefaultData">
<Subscript>"AcoPatientSearchRequest"</Subscript>
<Value name="1">
<Value>RosterEffDate</Value>
</Value>
<Value name="2">
<Value>RosterTermDate</Value>
</Value>
</Data>
<DefaultData>AcoPatientSearchRequestDefaultData</DefaultData>
<Type>%Library.CacheStorage</Type>
} }
 

Any advice would be appreciated. 

Thanks!

Warren

#Code Snippet #SOAP #XML #HealthShare
Product version: HealthShare 2019.1
$ZV: Cache for Windows (x86-64) 2018.1.2 (Build 309_5_19491U) Tue Dec 10 2019 17:30:27 EST

Source URL:https://community.intersystems.com/post/how-pass-custom-class