Ben is a
Writer Extraordinaire
Recap 2024
Publications:
2articles
2comments
Top Post:
320
people reached
User bio
404 bio not found
Member since Nov 15, 2016
Replies:

I just had to do this again to grab the SDA value Procedure.EnteredAt.Code

In case it's useful to anyone out there, my code for Step #4 was...
ClassMethod GetEnteredAtCodeViewerTransform(procedureID) As %String
{
 set patientid = %request.Data("PatientID",1)
 //merge ^CacheTempUser.WRC923241($zdatetime($horolog),"PatientID") = patientid 
 //merge ^CacheTempUser.WRC923241($zdatetime($horolog),"ProcedureID") = procedureID
 set streamletID = ##class(web.SDA3.Loader).GetStreamletId(,patientid,"PRC",procedureID)
 //merge ^CacheTempUser.WRC923241($zdatetime($horolog),"StreamletID") = streamletID
 set tSC = ##class(HS.SDA3.Container).LoadSDAObject(streamletID,.procedureSDA3)
 //merge ^CacheTempUser.WRC923241($zdatetime($horolog),"procedureSDA3") = procedureSDA3
 set EnteredAtCode = procedureSDA3.EnteredAt.Code
 quit EnteredAtCode
}

and the expression for Step 5 was:
  set val=##class(Test.WRC.W923241.Transforms).GetEnteredAtCodeViewerTransform($g(rs.Data("PROC_RowId")))
 

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