Soufiane Amroun · Sep 7, 2017 go to post

hi, i find it very intersting topic, i'm working actually on a project based on intersystems plateform, my question is:

- when i develop a BPL and its corresponding rules, where can i go to extract defined rules code on (xdata) in the routine data base?

Best Regards

Soufiane Amroun · Sep 13, 2017 go to post

Hi LAURA, i find your topic very intersting, i work on a similar project where i need to alert health professional about patients taken mesures (i need to alert doctor if his patient temperature is higher than 39°C) how can i do it? do you have any  ideas how to configure alert and rules. Thank's

Soufiane Amroun · Sep 25, 2017 go to post

HI Rubens,

i'm new developper here, and when the answer is ok , i evoluate it with green flag.

Soufiane Amroun · Sep 26, 2017 go to post

Hi Evgeny !

the second database isn't the result of a requested first one, it's my patient program that it serves for me as a comparator when i extract timestamp from a mean database (the first one).

Soufiane Amroun · Oct 10, 2017 go to post

here an example of my request , it can help you:

method CheckMissedMeasure() As %Status
{

 //selectionner tous les patients en retard  
 set myquery=3
 set myquery(1) = "SELECT profile_id,Type_Measure, Program as Heure_Ratée,Practitioner_Id,Warning_Type FROM Bwxpert_Repository.Enrollment" // enrollment
 set myquery(2) = " where GETDATE()>NEXT_MEASURE"
 set myquery(3)="and Alert=0"
  set tStatement = ##class(%SQL.Statement).%New()
 set qStatus = tStatement.%Prepare(.myquery)
  if qStatus'=1 {WRITE "%Prepare failed:" DO $System.Status.DisplayError(qStatus) QUIT}
    
  set rset = tStatement.%Execute()
     set array = []
     set json ={}
     while rset.%Next() {
       set json ={}
       set json.Profile= rset."profile_id"
       set json.MissedMeasure= rset."Type_Measure"
       set json.MissedPeriod= rset."Heure_Ratée"
       set json.Practionner= rset."Practitioner_Id"
       set json.ContactType= rset."Warning_Type"
       
       write json.%ToJSON()
       do array.%Push(json)
     }

Soufiane Amroun · Oct 27, 2017 go to post

Hi Chris

for the GET method , it's comming from my IHM , it's not in json form, you that i convert it into json form first?

thank's

Soufiane Amroun · Oct 27, 2017 go to post

Hi Chris

thank's for your back, i'm blocked on the authentification request , i want to extract user name , mail and password from the http request , after i send these parameters to my function in rest class.

thank's  

Soufiane Amroun · Nov 8, 2017 go to post

Hi Manoj

did you manage to make this configuration work?

if ok, can you tell me how did you do?

thank's

Soufiane Amroun · Nov 14, 2017 go to post

Hi Robert , thank you for the answer , please , do you have any example to show for me ?

Soufiane Amroun · Mar 16, 2018 go to post

ClassMethod SendMAil(mail As %Library.String, Url As %Library.String) As %Status
{

 Set server=##class(%Net.SMTP).%New()
 
  Set server.smtpserver="smtp.office365.com"
  //HotPOP SMTP server uses the default port (25)
  Set server.port=25
 
  //Create object to carry authentication

  Set auth=##class(%Net.Authenticator).%New()
  Set auth.UserName="noreply-service@*********.com"
  Set auth.Password="************"
 
  Set server.authenticator=auth
  Set server.AuthFrom=auth.UserName
 
 //create smtp server instance
 
 //generate mail body
 Set msg = ##class(%Net.MailMessage).%New()
 Set msg.From=server.authenticator.UserName
  Do msg.To.Insert(mail)
 Set msg.Subject="Set New Password"_$H
 Set msg.IsBinary=0
 Set msg.IsHTML=0
 Do msg.TextData.Write(Url)
 set status= server.Send(msg)
  If $$$ISERR(status) {
    Do $System.Status.DisplayError(status)
    Write server.Error
    
    Quit ""
  }
 
  Quit server.FailedSend
 

}

**********************************************************************

on my poste man i've this error: ERROR #6034 connetion failed to the SMTP server

Soufiane Amroun · Mar 16, 2018 go to post

Hi Robert thank you for the answer , but i've already the same problem:

i used an existing SSL configuration on my portal, when i used the port 25 or 587 : i've "connection failed to amtp server" as postman error message

and when i used port 465 : i've "impossible to establish TCP/IP connection " as postman error message

Soufiane Amroun · Sep 11, 2017 go to post

Hi Eduard , i used this code to edit a rule fields and it functionnes very well, but in my program i take measure of the patient (for example temprature )and i want to creat a rule wich generat alert if temperature is higher than 39°C for example.

Soufiane Amroun · Sep 20, 2017 go to post

thank's Daniel for the answer , my problem is how to trig my service each houre , is there any loop ? i'm beginner in caché .

thank's

Soufiane Amroun · Sep 20, 2017 go to post

Hi Edouard ,

i know how can i do it with portal management

what i need is how i do it inside my business host class.

thank's