I'm using this service to create a FHIR facade.
I want to return OperationOutcome to the calling application when I detect an error.
My code at present is :
set quickStreamOut=##class(HS.SDA3.QuickStream).%New()
set operationOutcome = ##class(HS.FHIR.DTL.vR4.Model.Resource.OperationOutcome).%New()
s issue = ##class(HS.FHIR.DTL.vR4.Model.Element.OperationOutcome.issue).%New()
s issue.severity = "error"
s issue.code = "exception"
s issue.details = ##class(HS.FHIR.DTL.vR4.Model.Datatype.CodeableConcept).%New()
try {
s issue.details.text = exception.