Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: RORX000

RORX000.m

Go to the documentation of this file.
RORX000 ;HCIOFO/SG - DUMMY REPORT ; 9/29/03 3:51pm
 ;;1.5;CLINICAL CASE REGISTRIES;**30,39**;Feb 17, 2006;Build 4
 ;
 ;ROR*1.5*30   OCT 2016   M FERRARESE   Changing the dispay for "Sex" to "Birth Sex" 
 ;ROR*1.5*39   JUL 2021    M FERRARESE  Setting SSN and LAST4 to zeros
 ;
 Q
 ;
 ;*****
BIGDUMMY(RORTSK) ;
 N BODY,FLT,IEN,IENS,NAME,NODE,PARAMS,PATIENT,REPORT,RORBUF,RORMSG,TMP
 ;---
 S REPORT=$$ADDVAL^RORTSK11(RORTSK,"REPORT")
 ;--- Dump the report parameters
 S BODY=$$ADDVAL^RORTSK11(RORTSK,"PARAMETERS",,REPORT)
 S NODE=$NA(RORTSK("PARAMS")),FLT=$P(NODE,")")_","
 F  S NODE=$Q(@NODE)  Q:'(NODE[FLT)  D
 . S TMP=$$ADDVAL^RORTSK11(RORTSK,"PARAMETER",NODE_" = "_@NODE,BODY)
 ;--- List of patients
 S BODY=$$ADDVAL^RORTSK11(RORTSK,"PATIENTS",,REPORT)
 S NAME=""
 F  S NAME=$O(^DPT("B",NAME))  Q:NAME=""  D
 . S IEN=0
 . F  S IEN=$O(^DPT("B",NAME,IEN))  Q:IEN'>0  D
 . . S IENS=IEN_","  K RORBUF
 . . D GETS^DIQ(2,IENS,".01;.02;.03;.06;.09;","E","RORBUF","RORMSG")
 . . S PATIENT=$$ADDVAL^RORTSK11(RORTSK,"PATIENT",,BODY)
 . . S TMP=$G(RORBUF(2,IENS,.01,"E"))
 . . D ADDVAL^RORTSK11(RORTSK,"NAME",TMP,PATIENT)
 . . S TMP=$G(RORBUF(2,IENS,.02,"E"))
 . . D ADDVAL^RORTSK11(RORTSK,"BIRTHSEX",TMP,PATIENT)
 . . S TMP=$G(RORBUF(2,IENS,.03,"E"))
 . . D ADDVAL^RORTSK11(RORTSK,"DOB",TMP,PATIENT)
 . . S TMP=$G(RORBUF(2,IENS,.06,"E"))
 . . D ADDVAL^RORTSK11(RORTSK,"RACE",TMP,PATIENT)
 . . S TMP=$G(RORBUF(2,IENS,.09,"E"))
 . . D ADDVAL^RORTSK11(RORTSK,"SSN",TMP,PATIENT)
 Q 0
 ;
 ;*****
DUMMY(RORTSK) ;
 N FLT,NODE,PARAMS,REPORT,TMP
 ;---
 S REPORT=$$ADDVAL^RORTSK11(RORTSK,"REPORT")
 S PARAMS=$$ADDVAL^RORTSK11(RORTSK,"PARAMETERS",,REPORT)
 ;--- Dump the report parameters
 S NODE=$NA(RORTSK("PARAMS")),FLT=$P(NODE,")")_","
 F  S NODE=$Q(@NODE)  Q:'(NODE[FLT)  D
 . S TMP=$$ADDVAL^RORTSK11(RORTSK,"PARAMETER",NODE_" = "_@NODE,PARAMS)
 Q 0