ClassMethod PDQQuery()
{
// Create Patient Search Request message
Set obj=##class(HS.Message.PatientSearchRequest).%New()
// Provide patient demographics
Set obj.FirstName="James"
Set obj.LastName="Smith"
// Required only for HS.Test.Service to distinguish between PIX/PDQ
Do obj.AdditionalInfo.SetAt(1,"PDQ")
// Send to the routing service (or directly to HS.IHE.PDQv3.Consumer.Operations)
Do ##class(HS.Test.Service).SendSync(obj,.sr)
quit
}