<< Click to Display Table of Contents >> Adding a diagnosis |
![]() ![]() ![]() |
EXEC AddClinProblem 233,'E11',1,'2002-01-20','A',3444
This is the definition of the procedure, as extracted from the FastTrak database.
PROCEDURE AddClinProblem( @PersonId INT, @ProbCode VARCHAR(8), @ListId INT,
@ProbDebut DateTime = NULL, @ProbType CHAR(1) = 'A', @BatchId INT = NULL ) AS
Parameter |
NULLABLE? |
Comment |
PersonId |
NOT NULL |
The Person this ClinProblem is for |
ProbCode |
NOT NULL |
A valid problem code, which is an ItemCode from the MetaNomItem table. |
ListId |
NOT NULL |
Refers to a valid vocabulary/coding system from MetaNomList. |
ProbDebut |
NULLABLE |
The first occurrence of this problem. If the procedure is called multiple times, the stored ProbDebut will be the earliest date used. If no date is given, the function getdate() is used (current time). |
ProbType |
NULLABLE |
A valid ProbType from MetaProblemType, enforced with foreign key constraint. |
BatchId |
NULLABLE |
A valid BatchId, enforced with a foreign key constraint to the ImportBatch table. |