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