tblLAB_RES - Resistance testing

holds background information on the resistance test, laboratory, library, kit, software and type of test

Note: This table is tightly linked to tblLAB_RES_LVL_1, tblLAB_RES_LVL_2 and tblLAB_RES_LVL_3.

Resistance should be reported at lowest level of interpretation possible – so if the nucleotide sequence is available this should be reported rather than the list of mutations or resistance scores. However, the resistance test results should be captured if they have been part of the physician’s treatment decisions for the patient.

These four tables are designed to capture several possible formats the clinics and cohorts might have recorded resistance test data in. Once this data is gathered it should like all other tables be quality assessed.

Core fields

Note: Fields marked bold form the unique identifier for a record of the table.

Field name




character (or numeric if possible)

Code to identify patient (Cohort Patient ID)


character (or numeric if possible)

The assigned sample ID



Date of the actual sample taken (NOT the test date)


yyyy-mm-dd hh:mm

Date and time when the sequencing was performed



Name of laboratory where the test was performed



Library/algorithm used to identify resistance mutations



Name/identifier of reference HIV strain used to find mutations



Vendor and version/name of the kit used for the test



Software and version used to determine resistance



  • 1 = Genotype
  • 2 = Phenotype
  • 9 = Other

Type of test



Subtype of HIV-RNA

Additional fields

As shown with the core fields, the SAMP_ID is the link between the 3 levels of data and the test background information table. The sample identifier, however, must be unique for the format to work. This might not always be the case. If needed SAMPLE_D could be used as an additional part of the key, or just SAMPLE_D along with the PATIENT key1.

Some prior assessment of the assigned sample identifiers has to be done in order to avoid duplicates.

In a running database the duplicate issues are easily resolved by adding a unique auto-generated key as the identifier between 3 levels of data and the test background information table SAMP_ID.

Along with the SAMP_ID it might be necessary to store the ID assigned to the sample at both the testing laboratory but also the centres laboratory in order to track the sample. Each of these could also be used as the SAMP_ID value.

1: However this raises the issue about several aliquots from the same day will look like duplicates in the tables.

Field name




character (or numeric if possible)

The assigned sample ID at the lab where the resistance test is preformed.


character (or numeric if possible)

The assigned sample ID from the centre.

QA Checks

Table Crosstable Error Code Description Study specific HICDEP?
AllTablesCrossTableATC001any date in database after DEATH_D in tblLTFUYES
AllTablesCrossTableATC002any date in database after DROP_D in tblLTFUYES
AllTablesCrossTableATC003any date in database before BIRTH_D in tblBASYES
AllTablesCrossTableATC004any date in database in the futureYES
AllTablesCrossTableATC005patients submitted previously who have been missed outYES
AllTablesCrossTableATC006Any fields not coded as coding lists on table definitionYES
tblLAB_RESWithinTableLRW001Duplicate records for same patient on same dateYES
tblLAB_RESWithinTableLRW002Missing PATIENTYES
tblLAB_RESWithinTableLRW003Missing SAMP_IDYES
tblLAB_RESWithinTableLRW004Missing SAMPLE_DYES
tblLAB_RESWithinTableLRW005Missing SEQ_DTYES
tblLAB_RESWithinTableLRW006Missing LABYES
tblLAB_RESWithinTableLRW007Missing LIBRARYYES
tblLAB_RESWithinTableLRW008Missing REFSEQYES
tblLAB_RESWithinTableLRW009Missing KITYES
tblLAB_RESWithinTableLRW010Missing SOFTWAREYES
tblLAB_RESWithinTableLRW011Missing TESTTYPEYES
tblLAB_RESWithinTableLRW012Missing SUBTYPEYES
tblLAB_RESWithinTableLRW013SEQ_DT has no time partYES
tblLAB_RESCrossTableLRC001PATIENT has no record in tblBASYES
tblLAB_RESCrossTableLRC002This SAMP_ID has both LVL_1 and LVL_2 recordsYES
Last modified 7 years ago Last modified on 09/13/11 06:27:44