User bio
404 bio not found
Member since Aug 12, 2016
Posts:
Francois has not published any posts yet.
Replies:

Hi @Ben Schlanger ,

According to the SDA annotations a Procedure's EnteredAt field is projected to :

/// [...] ViewerClass=User.HS.CTHospital
/// VIEWERLIB: User.HS.MRProcedures(PROCUpdateHospitalDR)

So I guess the Last Update Hospital is the description, not the code. But have you tried to use the Trak Table instead of loading the streamlet? 

If you have the procedureID you could try something like this:

set tMRProcedures = ##class(User.HS.MRProcedures).%OpenId(procedureID)
set EnteredAtCode = pMRProcedures.PROCUpdateHospitalDR.HOSPCode
 

Not that it makes a big difference in the end, but if that works it may be a more efficient method.
 

Hi Raouf,

on the Patient Banner component, and on Details components (side panes and pop-ups), you cannot access information "per row" using a ResultSet variable rs like described above. Instead you need to use %request properties: for example on the Patient Banner you can retrieve the internal patientID as

$g(%request.Data("PatientID",1))

From this point on, like before you can retrieve the Aggregation key like this:

$g(^CacheTemp.HS.ViewerStreamlet("HSACCESS","P",patientID))

Finally, the patient Streamlet is referenced with the information type "PAT", so that you can retrieve the StreamletID like this:

$g(^CacheTemp.HS.ViewerStreamlet("HSACCESS","V",agkey,"PAT",patientID)

Let us know if that doesn't work.

Francois

Certifications & Credly badges:
Francois has no Certifications & Credly badges yet.
Global Masters badges:
Francois has no Global Masters badges yet.
Followers:
Francois has no followers yet.
Following:
Francois has not followed anybody yet.