Print Page | Close Window

Array Attempt

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22228
Printed Date: 03 May 2024 at 5:36am


Topic: Array Attempt
Posted By: TorLang
Subject: Array Attempt
Date Posted: 08 Feb 2017 at 3:19am
Decided to dive into the world of array to solve my problem, but have no idea where and how to start.

Problem:

Hospital patients have diagnosis codes attached to the their account.

The account can have no diag. codes, or 1, 2 and even 10-15 of them.

Our system use rank numbers for these codes:

Admitting diag. code - 0
Primary diag code - 1
Secondary diag code - 2

and so on.

The two fields used are:

{TSM910_ICD9_REF.icd9_code}
{TPM318_VISIT_DIAGNOSIS.ICD9_rank_no}

The diag codes are strings and rank numbers are numbers.

From what I understand, I would need a formula to declare the array, a formula to display the diag code, and a formula to reset.

The report is grouped by visit number, and group footer as data placement.

Can someone get me started with creating the 3 first formulas (for example: diag_array, diag_display, diag_reset.

I will also have to create additional furmulas (one for each diag rank)

The report will have one patient record on each line, with diag. codes placed across each line (group footer)

So hopefully we've got some array gurus on the forum that can assist in getting this initial setup done.

Each Diag. code will have to have its own custom formula.

I truly appreciate the assistance.

  



Print Page | Close Window