I copied a Business Process router and did a Save As on its routing rule. I added the new routing rule to my new Business Process router. However, when I click the green circle next to my new Business Process router it shows the old Business Process router connection. Anyone know the cause and fix for this? I found a old post that said to add a Route Alias. But that did not work.
Is there a File Service (or a way to define a RecordMap) to intake a file that contains records that are JSON object?I would like to have my Service route each record(object) to a Process one at a time.
.png)
Anyone know how to subtract three hours from
If $ZDATETIME($HOROLOG,3) returns 2025-01-30 10:17:04, I would like $ZDATETIME($HOROLOG,3) - 3 hours to return 2025-01-30 07:17:04
I need to use a context variable in my code block for the table to query. When I use :content.table, it does not work. When using the literal, it does. How do I get the :context to work?
.png)
I have a Service reading a flat file and routing to a Process. Does anyone know how to get the %Source value into a BPL context parameter?
.png)
I have a DTL that calls a custom function that returns an object. How do I code the IF statement to check if the object is empty. e.g. IF tObject={}
What causes the ![CDATA[ in a string field?
<QueryParameters><![CDATA[showportalonly=1&leaveunprocessed=0&limit=5000]]></QueryParameters>
I have a table that is already created and contains data. I need to create a unique constraint that is a combination of two fields. Is there a way to do this in a SQL statement? Also, I would lke to know how to add it in the table class.
I have an API that does not have all the data. Like it is truncated. Magic number of characters seems to be 163,280
I do an <assign>
context.RawBundle=##class(%DynamicObject).%FromJSON(context.FHIRResponse.Body)
The error does not happen when the response is < 163,280 chars. And when < 163,280 chars, it is a complete FHIR Bundle. Have anyone experienced this? If so, what is the resolution?
.png)
I used to mannually test objectscript code in InterSystems Studio. Does anyone know how to do this is VS Code?
I am trying to do a INSERT OR UPDATE SQL query, but the query always inserts new rows to table. Is it how I defined the table or am I mising something in the query?
table defines as,
{
Property Tablespace As %Library.String(MAXLEN = 50) [ SqlColumnNumber = 2 ];
Property DepartmentId As %Library.String(MAXLEN = 50) [ SqlColumnNumber = 3 ];
Property TimezoneName As %Library.String(MAXLEN = 100) [ SqlColumnNumber = 4 ];
Property PatientDepartmentName As %Library.
I have this response, which is a FHIR location resource in a bundle. I would like to load the entry(0).resource into a context property defined as HS.FHIR.DTL.vR4.Model.Resource.Location so I can use it as a source in a DTL. Any help would be greatly appreciated. Thanks.
{"entry":[{"fullUrl":"https://dev-api.hosp.org/idkl/fhir/r4/v1/Location/ATH-1375-PRV-a-1375.D…","resource":{"extension":[{"url":"https://api.hosp.org/idkl/extensions/StructureDefinition/is-messaging-e…","valueBoolean":true}],"id":"ATH-1375-PRV-a-1375.
I have a message class define. But sometimes the RelatedItems fields is not returned.
Property RequestedTerm As AH.AHLIB.Custom.Symedical.Message.PostRelationResponse.termsRequested;
Property RelatedItems As list Of AH.AHLIB.Custom.Symedical.Message.PostRelationResponse.RelatedItems;
Respnse normally will return someting like this,
.png)
on ocassion the RelatedItems are not returned
have response context variable defined as the custom message type
.png)
How do I check in a BPL if there is no RelatedItems in the response?
.png)
I have a API that is returning on objext with four fields. Two are arrays that are empty. How can I define the message class property to ignore/handle "Messages" and "SharedRelations"?
.png)
I getting the response back to my method fine,
.png)
but it is not returning to my BPL.
.png)
What am I missing to get the response back to the BPL?
set tHttpResponse=##class(%Net.HttpResponse).%New()
set tSC = ..Adapter.SendFormDataArray(.tHttpResponse,"POST",tHttpRequest,"","",tURL)
set tStatusCode = tHttpResponse.StatusCode
$$$TRACE("Status Code: ["_tStatusCode_"]")
do ..logJSON(tHttpResponse.Data.Read(),"Post Relation Response")
// On HTTP 200 - OK
if tStatusCode = 200 {
do tHttpResponse.Data.Rewind()
do pResponse.%JSONImport(tHttpResponse.Dat
I am creating a custom message class. How do I define @name and #text fields?
this?
When using INSERT OR UPDATE command,
How does the command know if the row exists?
Is there a size limit to what a %Library.DynamicObject define variable can hold?
I am mapping a field to the FHIR Location resource field address.line. Using message class HS.FHIR.DTL.vR4.Model.Resource.Location
The line field is repeating
.png)
I set field as such,
.png)
This causes the error,
ERROR <Ens>ErrException: <INVALID OREF>zTransform+71^AH.AHEDSLPFD.Transforms.ReltioEntityToPFDFHIRLocation.1 -- logged as '-' number - @' If 'tIgnore { Set tSC=target.address.line.SetAt(zVALz,(1)) }'
Any suggestions on how I can format the target?
Would this replace a carriage return linefeed with a spacein a DTL? $REPLACE(string,"\X0D0A\",$CHAR(32))
I am trying to write a class method to return the value of a object element. Input to method is the object and element. I am not getting a value returned. What am I missing?
{
quit:pField="" "" set tResponse=""
set tResponse = pObject.
I am writing a custom business class. I need to use the business service name that will be using the class within a SQL statement. How can I get the business service name that is using the class?