Blog Archive

Friday, October 1, 2010

Database Structure

This is the crude initial database design .This may be changed during the development phase

Database design

Table name

HospitalList

Contains the list of hospitals. Independent doctors will fall in to default hospital

ClinicList

An hospital can contain one or more clinics. If there is no specific clinics then doctors will fall in to default clinic. Independent doctors will fall in to default Hospital’s default Clinic

ProviderList

Doctors List. Connected to clinics and hospitals

UserList

User list is the actual top level list. All stake holders and users of the application will have an entry in this table

AudioFileList

Every audio file comes in to the system will have an entry in this table after completing the production process. Files will be connected to author using doctor list

LiveAudioFileList

Every audio file comes in to the system will have an entry in this table until it complete the production process. After completing the production process entries will be removed from this table.

FTPMap

Contain the FTP info to collect and send the files

AudiioSourceTypeList

SpecilityList

RequestList

System will follow a request – processing architecture. Audio files coming to the system is considered as a transcription request. This is a feature left for future expansion .

ASRConFig

Maps the doctors to ASR speaker profile

ServiceProviderList

Contain the list of MTSOs

CenterList

Branches or transcription centers connected to MTSO

TranscriberList

List of transcribers

TranscriptList

Transcripts list contain the details of the transcripts for each audio file. An audio file can have one or more transcripts . Similarly a transcript can be collected one or more audio files

LiveTranscriptList

Same as Transcript list but contains the list of files in production.

PendingDownLoadList

WorkTypeList

Work type configurations

AudioTranscriptMap

Maps each audio with corresponding transcripts

LiveAudioTranscriptMap

Same As above but contains the list of live files

UserList

User list is the actual top level table. All stake holders and users of the application will have an entry in this table

UserRolesList

Transcriber/User roles List

UserGroup

UserGroupMap

UserRolesMap


Table Design

1. CS_Hospital List

Field Name

Type

Description

HospitalID

int

Pkey

HospitalName

String(200)

Address Fields

Add other fields to save address

2. CS_ClinicList

ClinicID

Int

Pkey

HospitalID

int

Fkey

ClinicName

string

Address fields

3. CS_ProviderList

ProviderID

int

Pkey

ClinicID

int

FKey

UserID

int

FKey

DoctorName

Speciality

int

Fkey

AudioFolder

String

TranscriptFolder

String

4. AudioFileList

DictID

int

PKey

FileName

String

ProviderID

int

Fkey

DOS

DateTime

Status

int

PlayTime

float

ApproxLineCount

int

This is calculated based on audio length

TransCenterID

int

When a new file comes in to the system files are actually mapped to branches. This is done with the use of ProviderBranchMap and ClinicBranchMaps

5. LiveAudioFileList

Same as above

6. CS_AudioSourceTypeList

TypeID

int

Pkey

TypeName

string

7.CS_ProviderSourceList

ProviderID

SourceTypeID

ConfigControlName

8.CS_FTPInfo

ProviderID

int

Server

String

Optional. Normaly FTP URL is used to construct the path

AudioDirectory

String

To form the folder from where audio to be collected combine this with FTPUrl

TranscriptDirectory

String

FTPURL

UserLogin

UserPassWd

CanBackUp

BackUpFolder

Type

int

This field is used to indicate whether this entry contain source only , destination only or both. In some cases files may be collected from FTP and delivered through different means

9. CS_SpecialityList

SpecialityID

SpecialityName

10. RequestList

Ref BPA Design

11. ASRConFig

ProviderID

int

ProfileName

String

Dragon ProfileName

ASRFolder

String

12. ServiceProviderList

SPID

int

Pkey

Name

String

String

Adress

Contact

Add other common fields

13. CenterList

SPID

int

Fkey

CenterID

int

PKey

CenterName

string

Address

String

Contact

String

14. TranscriberList

TranscriberID

int

TranscriberName

string

TransNickName

string

UserID

int

MaxCapacity

int

How many lines a transcriber can handle on a day

DirectSend

int

1- She can send all files direct if she wish

2- Depending on preference setting

3- Based on % settings

DirectSendPercent

float

15.TranscriptList

TranscriptID

int

PKey

TranscriptName

string

Status

LineCount

DateOfTrans

16. LiveTransList

Same as above

17. PendingDownLoadList

TranscriptID

int

DateTime

Status

18. WorkTypeList

WorkTypeID

int

WorkTypeName

string

TemplateFile

Type

int

1-Hospital wide

2-Clinic Wide

3-Doctor

AuthorID

int

19.AudioTranscriptMap

AudioID

int

TranscriptID

int

20. LiveAudioTranscriptMap

Same as above

21. TranscriptionHistory

This is a log table and it will contain entries when a transcript move around the system

TranscriptID

int

TranscriberID

int

Level

int

0-Transcribe

1-Proof1

2-Proof2

3-Proof3

AllocationID

int

CollectionTime

FinishTime

Accuarcy

WorkTypeUsed

Status

1-Allocated

2-SentToProcess

3-Completed

4-Cancelled

22. LiveTranscriptionHistory

Same as above

23. AllocationTable

AllocationID

int

AudioID

TranscriptID

AllocationType

int

1-To TSP

2-To Branch

3- To Transcriber

DateTime

int

ProcessedDateTime

AllocationStatus

int

1- Allocated

2- Downloaded

3- Uploaded

4- Completed

AllocatedFor

int

Link to action List

IntrimStatus

int

1- Idle

2- AudioDownLoadStarted

3- AudioDownLodCompleted

4- TranscriptDownloadStarted

5- TranscriptDownloadCompleted

6- Downloded

7- TranscriptUploadStarted

8- TranscriptUploaded

ActionListLookUp

ActionID

int

Pkey

Description

1- To Transcribe

2- To Proof Lev1

3- To PoofLev 2

4- To Prrof Lev 3

5- For QA

6- For QC

7- For Final Chcek

24. ClinicTransCenterMaps

This table is used for listing purpose. While allocating files it is used for those providers who is not having an entry in provider branch mappings.

MapID

int

ClinicID

int

TransCenterID

int

MapType

int

1- ALL

2- Partial

25. ProviderBranchMaps

Keep ProviderID and TransCenter ID as a combination key to avoid duplications.

MapID

int

ProviderID

int

TransCenterID

int

26. TranscriberPrefernces

TranscriberID

int

ProvidrID

int

Level

int

1- Transcribe

2- Editing

3- Proofing

4- FinalCheck

WorkType

int

Work type ID to be allocated. By default this field value set to -1 . If it is -1 work type is ignored.

Quantity

int

Maximum lines to be allocated

DirectSend

int

1- Enabled

2- Disabled

Note : This settings is valid for transcribers and editors only. Proofers can always send it directly

Note : Add another table named allocation statusLookUp to configure these values


2ConfigCollection

This table contains the collection of configuration items as name value pairs. One nested level is provided with the use of sections

ModuleName

string

ItemName

string

Value

String

How to access Config Collection

A static class will be provided for accessing values from this table. It will contain a interface like below

ConfigCollection.GetConfigValue(string mouleName,string itemName, out string value)

Initial collection in this Table

General

RootFolder

F:\ATFASRoot

General

TranscriptionFolder


No comments:

Post a Comment