-
Notifications
You must be signed in to change notification settings - Fork 0
/
compData.sql
executable file
·541 lines (495 loc) · 18.3 KB
/
compData.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
-- SQLite script to create single Practice Fusion databases
-- with all training and test tables and some useful joins.
-- Usage:
-- sqlite3.exe name.db < filename.sql
.mode csv
-- =============================================================
-- Raw data: Common files
-- =============================================================
DROP TABLE IF EXISTS condition;
CREATE TABLE condition (
ConditionGuid char(36) PRIMARY KEY,
Code varchar(50),
Name varchar(100)
);
.import SyncCondition.csv condition
DELETE FROM condition WHERE ConditionGuid='ConditionGuid';
DROP TABLE IF EXISTS smokingStatus;
CREATE TABLE smokingStatus(
SmokingStatusGuid char(36) PRIMARY KEY,
Description varchar(255),
NISTcode integer
);
.import SyncSmokingStatus.csv smokingStatus
DELETE FROM smokingStatus WHERE SmokingStatusGuid='SmokingStatusGuid';
-- =============================================================
-- Raw data: training
-- =============================================================
DROP TABLE IF EXISTS training_patient;
CREATE TABLE training_patient(
PatientGuid char(36) PRIMARY KEY,
dmIndicator integer,
Gender varchar(1),
YearOfBirth integer,
State varchar(2),
PracticeGuid char(36)
);
.import training_SyncPatient.csv training_patient
DELETE FROM training_patient WHERE PatientGuid='PatientGuid';
DROP TABLE IF EXISTS training_allergy;
CREATE TABLE training_allergy(
AllergyGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
AllergyType varchar(100),
StartYear integer,
ReactionName varchar(100),
SeverityName varchar(100),
MedicationNdcCode varchar(50),
MedicationName varchar(100),
UserGuid char(36)
);
.import training_SyncAllergy.csv training_allergy
DELETE FROM training_allergy WHERE AllergyGuid='AllergyGuid';
DROP TABLE IF EXISTS training_diagnosis;
CREATE TABLE training_diagnosis (
DiagnosisGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
ICD9Code varchar(50),
DiagnosisDescription varchar(256),
StartYear int,
StopYear int,
Acute int,
UserGuid char(36)
);
.import training_SyncDiagnosis.csv training_diagnosis
DELETE FROM training_diagnosis WHERE DiagnosisGuid='DiagnosisGuid';
DROP TABLE IF EXISTS training_immunization;
CREATE TABLE training_immunization (
ImmunizationGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
VaccineName varchar(256),
AdministeredYear int,
CvxCode varchar(100),
UserGuid char(36)
);
.import training_SyncImmunization.csv training_immunization
DELETE FROM training_immunization WHERE ImmunizationGuid='ImmunizationGuid';
DROP TABLE IF EXISTS training_transcript;
CREATE TABLE training_transcript(
TranscriptGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
VisitYear integer,
Height,
Weight real,
BMI real,
SystolicBP integer,
DiastolicBP integer,
RespiratoryRate integer,
HeartRate integer,
Temperature real,
PhysicianSpecialty varchar(256),
UserGuid char(36)
);
.import training_SyncTranscript.csv training_transcript
DELETE FROM training_transcript WHERE TranscriptGuid='TranscriptGuid';
DROP TABLE IF EXISTS training_labResult;
CREATE TABLE training_labResult(
LabResultGuid char(36) PRIMARY KEY,
UserGuid char(36),
PatientGuid char(36) REFERENCES patient(patientGuid),
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
PracticeGuid char(36),
FacilityGuid char(36),
ReportYear integer,
AncestorLabResultGuid char(36)
);
.import training_SyncLabResult.csv training_labResult
DELETE FROM training_labResult WHERE LabResultGuid='LabResultGuid';
DROP TABLE IF EXISTS training_labPanel;
CREATE TABLE training_labPanel(
PanelName varchar(255),
LabPanelGuid char(36) PRIMARY KEY,
LabResultGuid char(36) REFERENCES labResult(labResultGuid),
ObservationYear integer,
Status varchar(255)
);
.import training_SyncLabPanel.csv training_labPanel
DELETE FROM training_labPanel WHERE LabPanelGuid='LabPanelGuid';
DROP TABLE IF EXISTS training_labObservation;
CREATE TABLE training_labObservation (
HL7Identifier varchar(255),
HL7Text varchar(255),
LabObservationGuid char(36) PRIMARY KEY,
LabPanelGuid char(36) REFERENCES labPanel(labPanelGuid),
HL7CodingSystem varchar(255),
ObservationValue varchar(255),
Units varchar(255),
ReferenceRange varchar(255),
AbnormalFlags varchar(255),
ResultStatus varchar(255),
ObservationYear int,
UserGuid char(36),
IsAbnormalValue int
);
.import training_SyncLabObservation.csv training_labObservation
DELETE FROM training_labObservation
WHERE LabObservationGuid='LabObservationGuid';
DROP TABLE IF EXISTS training_medication;
CREATE TABLE training_medication (
MedicationGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
MedicationNdcCode varchar(50),
MedicationName varchar(256),
MedicationStrength varchar(50),
Schedule varchar(50),
DiagnosisGuid char(36) REFERENCES diagnosis(diganosisGuid),
UserGuid char(36)
);
.import training_SyncMedication.csv training_medication
DELETE FROM training_medication WHERE MedicationGuid='MedicationGuid';
DROP TABLE IF EXISTS training_patientCondition;
CREATE TABLE training_patientCondition (
PatientConditionGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
ConditionGuid char(36),
CreatedYear integer
);
.import training_SyncPatientCondition.csv training_patientCondition
DELETE FROM training_patientCondition
WHERE PatientConditionGuid='PatientConditionGuid';
DROP TABLE IF EXISTS training_patientSmokingStatus;
CREATE TABLE training_patientSmokingStatus(
PatientSmokingStatusGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
SmokingStatusGuid char(36) REFERENCES smokingStatus(smokingStatusGuid),
EffectiveYear integer
);
.import training_SyncPatientSmokingStatus.csv training_patientSmokingStatus
DELETE FROM training_patientSmokingStatus
WHERE PatientSmokingStatusGuid='PatientSmokingStatusGuid';
DROP TABLE IF EXISTS training_prescription;
CREATE TABLE training_prescription (
PrescriptionGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
MedicationGuid char(36) REFERENCES medication(medicationGuid),
PrescriptionYear integer,
Quantity varchar(50),
NumberOfRefills varchar(50),
RefillAsNeeded integer,
GenericAllowed integer,
UserGuid char(36)
);
.import training_SyncPrescription.csv training_prescription
DELETE FROM training_prescription WHERE PrescriptionGuid='PrescriptionGuid';
DROP TABLE IF EXISTS training_transcriptAllergy;
CREATE TABLE training_transcriptAllergy(
TranscriptAllergyGuid char(36) PRIMARY KEY,
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
AllergyGuid char(36) REFERENCES allergy(allergyGuid)
);
.import training_SyncTranscriptAllergy.csv training_transcriptAllergy
DELETE FROM training_transcriptAllergy
WHERE TranscriptAllergyGuid='TranscriptAllergyGuid';
DROP TABLE IF EXISTS training_transcriptDiagnosis;
CREATE TABLE training_transcriptDiagnosis (
TranscriptDiagnosisGuid char(36) PRIMARY KEY,
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
DiagnosisGuid char(36) REFERENCES diagnosis(diagnosisGuid)
);
.import training_SyncTranscriptDiagnosis.csv training_transcriptDiagnosis
DELETE FROM training_transcriptDiagnosis
WHERE TranscriptDiagnosisGuid='TranscriptDiagnosisGuid';
DROP TABLE IF EXISTS training_transcriptMedication;
CREATE TABLE training_transcriptMedication (
TranscriptMedicationGuid char(36) PRIMARY KEY,
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
MedicationGuid char(36) REFERENCES medication(medicationGuid)
);
.import training_SyncTranscriptMedication.csv training_transcriptMedication
DELETE FROM training_transcriptMedication
WHERE TranscriptMedicationGuid='TranscriptMedicationGuid';
-- =============================================================
-- Basic joined tables: training
-- =============================================================
DROP TABLE IF EXISTS templabs;
CREATE TEMP TABLE templabs AS
SELECT *
FROM training_labResult
LEFT OUTER JOIN training_labPanel
ON training_labResult.LabResultGuid = training_labPanel.LabResultGuid;
DROP TABLE IF EXISTS addObs;
CREATE TEMP TABLE addObs AS
SELECT * FROM templabs
LEFT OUTER JOIN training_labObservation
ON templabs.LabPanelGuid = training_labObservation.LabPanelGuid;
DROP TABLE IF EXISTS training_labs;
CREATE TABLE training_labs AS SELECT * FROM addObs;
DROP TABLE IF EXISTS tempPatSmoke;
CREATE TEMP TABLE tempPatSmoke AS
SELECT training_patient.PatientGuid, Gender, YearOfBirth, State, PracticeGuid,
SmokingStatusGuid, EffectiveYear as SmokeEffectiveYear
FROM training_patient
LEFT OUTER JOIN training_patientSmokingStatus
ON training_patient.PatientGuid = training_patientSmokingStatus.PatientGuid;
DROP TABLE IF EXISTS addSmoke;
CREATE TEMP TABLE addSmoke AS
SELECT PatientGuid, Gender, YearOfBirth, State, PracticeGuid,
SmokeEffectiveYear, Description as SmokingStatus_Description,
NISTcode as SmokingStatus_NISTCode
FROM tempPatSmoke
LEFT OUTER JOIN smokingStatus
ON tempPatSmoke.SmokingStatusGuid = smokingStatus.SmokingStatusGuid;
DROP TABLE IF EXISTS training_smoke;
CREATE TABLE training_smoke AS SELECT * FROM addSmoke;
DROP TABLE IF EXISTS training_patientTranscript;
CREATE TABLE training_patientTranscript AS
SELECT *
FROM training_patient
LEFT OUTER JOIN training_transcript
ON training_patient.PatientGuid = training_transcript.PatientGuid;
DROP TABLE IF EXISTS tempMedsRx;
CREATE TEMP TABLE tempMedsRx AS
SELECT * FROM training_medication
LEFT OUTER JOIN training_prescription
ON training_medication.PatientGuid = training_prescription.PatientGuid
AND training_medication.MedicationGuid = training_prescription.MedicationGuid;
DROP TABLE IF EXISTS training_allMeds;
CREATE TABLE training_allMeds AS
SELECT * FROM tempMedsRx
LEFT OUTER JOIN training_allergy
ON tempMedsRx.PatientGuid = training_allergy.PatientGuid
AND tempMedsRx.MedicationNdcCode = training_allergy.MedicationNdcCode;
-- =============================================================
-- Raw data: test
-- =============================================================
DROP TABLE IF EXISTS test_patient;
CREATE TABLE test_patient(
PatientGuid char(36) PRIMARY KEY,
Gender varchar(1),
YearOfBirth integer,
State varchar(2),
PracticeGuid char(36)
);
.import test_SyncPatient.csv test_patient
DELETE FROM test_patient WHERE PatientGuid='PatientGuid';
DROP TABLE IF EXISTS test_allergy;
CREATE TABLE test_allergy(
AllergyGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
AllergyType varchar(100),
StartYear integer,
ReactionName varchar(100),
SeverityName varchar(100),
MedicationNDCCode varchar(50),
MedicationName varchar(100),
UserGuid char(36)
);
.import test_SyncAllergy.csv test_allergy
DELETE FROM test_allergy WHERE AllergyGuid='AllergyGuid';
DROP TABLE IF EXISTS test_diagnosis;
CREATE TABLE test_diagnosis (
DiagnosisGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
ICD9Code varchar(50),
DiagnosisDescription varchar(256),
StartYear int,
StopYear int,
Acute int,
UserGuid char(36)
);
.import test_SyncDiagnosis.csv test_diagnosis
DELETE FROM test_diagnosis WHERE DiagnosisGuid='DiagnosisGuid';
DROP TABLE IF EXISTS test_immunization;
CREATE TABLE test_immunization (
ImmunizationGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
VaccineName varchar(256),
AdministeredYear int,
CvxCode varchar(100),
UserGuid char(36)
);
.import test_SyncImmunization.csv test_immunization
DELETE FROM test_immunization WHERE ImmunizationGuid='ImmunizationGuid';
DROP TABLE IF EXISTS test_transcript;
CREATE TABLE test_transcript(
TranscriptGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
VisitYear integer,
Height,
Weight real,
BMI real,
SystolicBP integer,
DiastolicBP integer,
RespiratoryRate integer,
HeartRate integer,
Temperature real,
PhysicianSpecialty varchar(256),
UserGuid char(36)
);
.import test_SyncTranscript.csv test_transcript
DELETE FROM test_transcript WHERE TranscriptGuid='TranscriptGuid';
DROP TABLE IF EXISTS test_labResult;
CREATE TABLE test_labResult(
LabResultGuid char(36) PRIMARY KEY,
UserGuid char(36),
PatientGuid char(36) REFERENCES patient(patientGuid),
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
PracticeGuid char(36),
FacilityGuid char(36),
ReportYear integer,
AncestorLabResultGuid char(36)
);
.import test_SyncLabResult.csv test_labResult
DELETE FROM test_labResult WHERE LabResultGuid='LabResultGuid';
DROP TABLE IF EXISTS test_labPanel;
CREATE TABLE test_labPanel(
PanelName varchar(255),
LabPanelGuid char(36) PRIMARY KEY,
LabResultGuid char(36) REFERENCES labResult(labResultGuid),
ObservationYear integer,
Status varchar(255)
);
.import test_SyncLabPanel.csv test_labPanel
DELETE FROM test_labPanel WHERE LabPanelGuid='LabPanelGuid';
DROP TABLE IF EXISTS test_labObservation;
CREATE TABLE test_labObservation (
HL7Identifier varchar(255),
HL7Text varchar(255),
LabObservationGuid char(36) PRIMARY KEY,
LabPanelGuid char(36) REFERENCES labPanel(labPanelGuid),
HL7Codingsystem varchar(255),
ObservationValue varchar(255),
Units varchar(255),
ReferenceRange varchar(255),
AbnormalFlags varchar(255),
ResultStatus varchar(255),
ObservationYear int,
UserGuid char(36),
SsAbnormalValue int
);
.import test_SyncLabObservation.csv test_labObservation
DELETE FROM test_labObservation WHERE LabObservationGuid='LabObservationGuid';
DROP TABLE IF EXISTS test_medication;
CREATE TABLE test_medication (
MedicationGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
MedicationNdcCode varchar(50),
MedicationName varchar(256),
MedicationStrength varchar(50),
Schedule varchar(50),
DiagnosisGuid char(36) REFERENCES diagnosis(diganosisGuid),
UserGuid char(36)
);
.import test_SyncMedication.csv test_medication
DELETE FROM test_medication WHERE MedicationGuid='MedicationGuid';
DROP TABLE IF EXISTS test_patientCondition;
CREATE TABLE test_patientCondition (
PatientConditionGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
ConditionGuid char(36),
CreatedYear integer
);
.import test_SyncPatientCondition.csv test_patientCondition
DELETE FROM test_patientCondition WHERE PatientConditionGuid='PatientConditionGuid';
DROP TABLE IF EXISTS test_patientSmokingStatus;
CREATE TABLE test_patientSmokingStatus(
PatientSmokingStatusGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
SmokingStatusGuid char(36) REFERENCES smokingStatus(smokingStatusGuid),
EffectiveYear integer
);
.import test_SyncPatientSmokingStatus.csv test_patientSmokingStatus
DELETE FROM test_patientSmokingStatus
WHERE PatientSmokingStatusGuid='PatientSmokingStatusGuid';
DROP TABLE IF EXISTS test_prescription;
CREATE TABLE test_prescription (
PrescriptionGuid char(36) PRIMARY KEY,
PatientGuid char(36) REFERENCES patient(patientGuid),
MedicationGuid char(36) REFERENCES medication(medicationGuid),
PrescriptionYear integer,
Quantity varchar(50),
NumberOfRefills varchar(50),
RefillAsNeeded integer,
GenericAllowed integer,
UserGuid char(36)
);
.import test_SyncPrescription.csv test_prescription
DELETE FROM test_prescription WHERE PrescriptionGuid='PrescriptionGuid';
DROP TABLE IF EXISTS test_transcriptAllergy;
CREATE TABLE test_transcriptAllergy(
TranscriptAllergyGuid char(36) PRIMARY KEY,
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
AllergyGuid char(36) REFERENCES allergy(allergyGuid)
);
.import test_SyncTranscriptAllergy.csv test_transcriptAllergy
DELETE FROM test_transcriptAllergy
WHERE TranscriptAllergyGuid='TranscriptAllergyGuid';
DROP TABLE IF EXISTS test_transcriptDiagnosis;
CREATE TABLE test_transcriptDiagnosis (
TranscriptDiagnosisGuid char(36) PRIMARY KEY,
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
DiagnosisGuid char(36) REFERENCES diagnosis(diagnosisGuid)
);
.import test_SyncTranscriptDiagnosis.csv test_transcriptDiagnosis
DELETE FROM test_transcriptDiagnosis
WHERE TranscriptDiagnosisGuid='TranscriptDiagnosisGuid';
DROP TABLE IF EXISTS test_transcriptMedication;
CREATE TABLE test_transcriptMedication (
TranscriptMedicationGuid char(36) PRIMARY KEY,
TranscriptGuid char(36) REFERENCES transcript(transcriptGuid),
MedicationGuid char(36) REFERENCES medication(medicationGuid)
);
.import test_SyncTranscriptMedication.csv test_transcriptMedication
DELETE FROM test_transcriptMedication
WHERE TranscriptMedicationGuid='TranscriptMedicationGuid';
-- =============================================================
-- Basic joined tables: test
-- =============================================================
DROP TABLE IF EXISTS templabs;
CREATE TEMP TABLE templabs AS
SELECT *
FROM test_labResult
LEFT OUTER JOIN test_labPanel
ON test_labResult.LabResultGuid = test_labPanel.LabResultGuid;
DROP TABLE IF EXISTS addObs;
CREATE TEMP TABLE addObs AS
SELECT * FROM templabs
LEFT OUTER JOIN test_labObservation
ON templabs.LabPanelGuid = test_labObservation.LabPanelGuid;
DROP TABLE IF EXISTS test_labs;
CREATE TABLE test_labs AS SELECT * FROM addObs;
DROP TABLE IF EXISTS tempPatSmoke;
CREATE TEMP TABLE tempPatSmoke AS
SELECT test_patient.PatientGuid, Gender, YearOfBirth, State, PracticeGuid,
SmokingStatusGuid, EffectiveYear as SmokeEffectiveYear
FROM test_patient
LEFT OUTER JOIN test_patientSmokingStatus
ON test_patient.PatientGuid = test_patientSmokingStatus.PatientGuid;
DROP TABLE IF EXISTS addSmoke;
CREATE TEMP TABLE addSmoke AS
SELECT PatientGuid, Gender, YearOfBirth, State, PracticeGuid,
SmokeEffectiveYear, Description as SmokingStatus_Description,
NISTcode as SmokingStatus_NISTCode
FROM tempPatSmoke
LEFT OUTER JOIN smokingStatus
ON tempPatSmoke.SmokingStatusGuid = smokingStatus.SmokingStatusGuid;
DROP TABLE IF EXISTS test_smoke;
CREATE TABLE test_smoke AS SELECT * FROM addSmoke;
DROP TABLE IF EXISTS test_patientTranscript;
CREATE TABLE test_patientTranscript AS
SELECT *
FROM test_patient
LEFT OUTER JOIN test_transcript
ON test_patient.PatientGuid = test_transcript.PatientGuid;
DROP TABLE IF EXISTS tempMedsRx;
CREATE TEMP TABLE tempMedsRx AS
SELECT * FROM test_medication
LEFT OUTER JOIN test_prescription
ON test_medication.PatientGuid = test_prescription.PatientGuid
AND test_medication.MedicationGuid = test_prescription.MedicationGuid;
DROP TABLE IF EXISTS test_allMeds;
CREATE TABLE test_allMeds AS
SELECT * FROM tempMedsRx
LEFT OUTER JOIN test_allergy
ON tempMedsRx.PatientGuid = test_allergy.PatientGuid
AND tempMedsRx.MedicationNdcCode = test_allergy.MedicationNdcCode;