Your would use JMeter to launch multiple calls in a row.
- Log in to post comments
Your would use JMeter to launch multiple calls in a row.
Fixed! Thank you @Anastasia Dyubaylo
!
InitialExpression is what you are looking for:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
Take a look at this article, it's exactly what you need:
https://community.intersystems.com/post/creating-rest-api-jwt-authentic…
In my opinion the best approach is to create a BO for each database connection and invoke them from a BPL, getting the results and doing whatever you want.
UserTable and DataTable are related? I'm guessing that if Condition1 is the relation between the tables you would try this query:
SELECTCOUNT(CASEWHEN data.a = "Condition1"then1ELSENULLEND) as"ValueA",
COUNT(CASEWHEN data.b = "Condition2"then1ELSENULLEND) as"ValueB",
COUNT(CASEWHEN data.c = "Condition3"then1ELSENULLEND) as"ValueC",
user.id
FROM UserTable userleftjoin DataTable dataon user.id = data.userI wrote an article about the creation of a REST service that maybe can help you.
https://community.intersystems.com/post/creating-rest-service-iris
You can check the ClassMethod TestPost where a data is received from a post call and is sent finally to a business operation where is transformed into a DynamicObject and parsed to another class. This is the business operation:
Class WSTEST.BO.PersonSaveBO Extends EnsLib.REST.Operation
{
Parameter INVOCATION = "Queue";
Method savePerson(pRequest As WSTEST.Object.PersonSaveRequest, Output pResponse As WSTEST.Object.PersonSaveResponse) As%Status
{
try {
set person = ##class("WSTEST.Object.Person").%New()
#dim request as%DynamicObject = {}.%FromJSON(pRequest.JSON)
set person.PersonId = request.PersonId
set person.Name = request.Name
set person.LastName = request.LastName
set person.Sex = request.Sex
set person.Dob = request.Dob
set tSC = person.%Save()
set pResponse = ##class("WSTEST.Object.PersonSaveResponse").%New()
set pResponse.PersonId = person.PersonId
set pResponse.Name = person.Name
set pResponse.LastName = person.LastName
set pResponse.Sex = person.Sex
set pResponse.Dob = person.Dob
}catch{
Set tSC="Error saving the person"
}
Quit tSC
}
XData MessageMap
{
<MapItems>
<MapItem MessageType="WSTEST.Object.PersonSaveRequest">
<Method>savePerson</Method>
</MapItem>
</MapItems>
}
}Well, from my experience you will need the same databases on your local instance, so you will need to load a backup from the original into the local instance and after that apply the journal file generated after the creation of this backup from the original.
Second position is the best position!
You have to create a new class that extends Ens.StringResponse, then you will be able to add so many properties as you need in your new class.
Please, check this URL: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…

😂
Not sure if Private property is what you are looking for:
https://docs.intersystems.com/iris20231/csp/docbook/DocBook.UI.Page.cls…
Maybe it's too obvious but, have you tried to cast the column?
CAST(DRIVER AS VARCHAR(8000)) AS DRIVERCheck you pool connections, it looks like you have a pool of 100 and when you try to open the 101 connection it fails.
Maybe this page put you in the right direction:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
I don't think that is possible out of the context of a production, at the end the destination of the routed message is always a business component deployed in a production, the context info and the messages are linked to components of the productions too.
I think that is easier to learn objectscript than try to adapt the behavior of the business rules.
You can see in this post some allowed adaptations by code of the business rules, but always in the context of a production.
https://community.intersystems.com/post/how-edit-fields-intersystems-en…
Well, I'll answer you from my experience, maybe I'm wrong.
About your first question, you are totally free to use a encoded BP or BPL and DTL, as you prefer. I usually prefer to use BP by code for custom objects and DTL and BPL when I work with HL7 messages...why? because I'm too lazy to write code foreach transformation of field in an HL7 message.
The Business Service used by the RecordMapper has a property called Synchronous Send:
When you check it the Business Service is going to send the record mapped in a sync call to your BP, so it's not going to read a new line of the file until a response is received from the destination.
About the OnRespone, you can check the official documentation: https://docs.intersystems.com/iris20231/csp/docbook/DocBook.UI.Page.cls…
I usually implement the OnResponse to receive Async responses from Business Operations called by my BP, in your case I think that it's unnecessary, but this is a personal opinion.
Take a look at this question of the community:
https://community.intersystems.com/post/how-copy-array-values-json-obje…
You can start compressing Journals:
https://docs.intersystems.com/healthconnectlatest/csp/docbook/DocBook.U…
And take a look at the purge of the production data:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
And for the API Rest:
https://community.intersystems.com/post/creating-rest-service-iris
If you want to configure jwt validation this is a great article:
https://community.intersystems.com/post/creating-rest-api-jwt-authentic…
Have you tried to check "Disable Query Timeout" option on ODBC configuration?
.png)
Sorry, my Windows is configured on spanish.
Please, check the ODBC log, just to confirm what is the exact error.
Could you try to run the data load just for the 10 problematic tables? Just to be sure that is not a specific problem of those tables.
If your Business Operation is deployed in a Production you can configure the default options of EnsLib.HTTP.OutboundAdapter to control timeouts and retries:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
.png)
Something like this example?
http://hl7.org/fhir/R4/allergyintolerance-fishallergy.json.html
{
"resourceType": "AllergyIntolerance",
"id": "fishallergy",
"text": {
"status": "additional",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>allergy is to fresh fish. Tolerates canned fish</p>\n <p>recordedDate:2015-08-06T00:00:00-06:00</p>\n <p>substance:Fish - dietary (substance)</p>\n </div>"
},
"identifier": [
{
"system": "http://acme.com/ids/patients/risks",
"value": "49476535"
}
],
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
"code": "active",
"display": "Active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
"code": "confirmed",
"display": "Confirmed"
}
]
},
"category": [
"food"
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "227037002",
"display": "Fish - dietary (substance)"
}
],
"text": "Allergic to fresh fish. Tolerates canned fish"
},
"patient": {
"reference": "Patient/example"
},
"recordedDate": "2015-08-06T15:37:31-06:00",
"recorder": {
"reference": "Practitioner/example"
}
}I guess that you only have to send a POST with this json as body (updating the references to your patient and practitioner - you can remove it) from a Postman to your FHIR endpoint.
As you can see in the documentation of the resouce the encounter is optional (0..1):
http://hl7.org/fhir/R4/allergyintolerance.html
.png)
Don't forget to check the answer as correct!