logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Ivor CutlerLaw
(5/5)

644 Answers

Hire Me
expert
K AndersonAccounting
(5/5)

562 Answers

Hire Me
expert
Jacobs WilkinsTechnical writing
(5/5)

946 Answers

Hire Me
expert
Catherine Chanwai EarleLaw
(5/5)

933 Answers

Hire Me
SAS
(5/5)

The assignment is to print the list of patients who have spent five or more days in the hospital

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Below are three files- a patient file, an inpatient (hospital) file, and an outpatient file.  Cut and paste the data into three separate external, raw data files.  There is also charge category information to be used as input into a user-defined format.

The assignment is to print the list of patients who have spent five or more days in the hospital (inpatient) and have both inpatient and ouptatient costs (use of in= variables highly encouraged).

Print a list of qualifying patients, sorted by last name, and include full name (form: firstname lastname), gender, age (as of program run date) and total cost (inpatient + outpatient).

Set up the number of hospital days required (five) for this report as a SAS macro variable (as opposed to a macro).

Create a charge category lookup file using a user-defined format (as discussed in class and in Section 4.8 of the book).  Note that if you use the Value statment (which you should), you'll need to convert the resultant character variable to a number using the input function. For example (variable names can be changed, of course):

opchargeamount = input(put(chargecat, $chargeamtfmt.),8.);

Note that the first day (the admit date) of inpatient visits counts as one day.

* patient file;

* variables: patid, full name, gender, date of birth;

1  Brown, Sue     F   10/1/78

2  Black, Bob     M   1/17/89

3  Green, Jake    M   12/15/95

4  Smith, Sam     F   5/7/88

5  Lee-Smith, Roy M   3/22/83

6  Jones, Jon     M   11/11/55

7  Grey, Jane     F   9/21/64

8  Baker, Chris   M   12/9/72

* variables: patid, admit date, discharge date, doc charge, room and board charge;

* inpatient file;

1  1/1/05   1/1/05   100   0

1  2/1/05   2/1/05   150   0

1  3/1/05   3/1/05   125   0

3  1/1/05   1/1/05   125   0

3  2/1/05   2/1/05   175   0

3  3/1/05   3/1/05   150   0

3  4/1/05   4/3/05   125   1500

4  1/1/05   1/1/05    .    0

4  2/1/05   2/1/05   100   0

4  3/1/05   3/1/05   100   0

5  1/1/05   1/1/05   150   0

5  2/1/05   2/1/05   250   0

5  3/1/05   3/1/05   100   0

5  4/1/05   4/3/05    .    1000

5  5/1/05   5/3/05   100   1000

7  1/1/05   1/10/05  125   10000

* variables: last name, charge category;

* outpatient file;

Brown     H

Black     M

Green     H

Smith     L

Smith     L

Smith     L

Lee-Smith M

Jones     M

Jones     M

* variables: charge category, charge amount;

* charge category file;

H   1500

M   850

L   250

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme