Blog Archive

Sunday, October 31, 2010

Dictionary Management

  • Add facility to enter new words and a description.
  • If the word is already exist give an error message
  • Export all words from the current dictionary to that table
  • Mark all words from current dictionary as approved and released
  • A field is needed to show the date when it is added to the dictionary release.
  • Provide a facility for admin to approve the words
  • Provide facility to search and delete words. Only for admin
  • Just mark those words as deleted in the table
  • In all login give a facility to download a generated dictionary.
  • From the DictionaryReleasedDate table provide a list for downloading the latest 3 releases

Words Table

Word

string

Unique Key

EnteredBy

String or UserID

which ever is convenient for programmer.Integer user ID link is better. For all pre added words this can be -1

DateAdded

datetime

ApprovedBY

String or user ID

ApprovedDate

Date

Status

0-New

1-Appoved

2- Added in dictionary and released

3- Deleted

ReleasedVersionID


Lik to releases

DictionaryReleaseDate

VersionName

string

VersionID

Int

ReleaseDate

Date

FilePath

String

File path in server

ReleasedBy

int

Description

String

Friday, October 29, 2010

Filling PatientInfo Table

Patient info table is filled from the information collected from transcripts. Different templates may contain different tag names for the convenience of the transcriber and the way customers name it.
For example CaseID, JobNumber, Encounter Id all normally maps in to JobNumber in the patint info table. Similarly EncounterDate,VisitDate,DateOfService maps in to DOS field in the patient info table
This points to the need of a map table which maps the tags to the corresponding field in the patient info table.
A Table named TagToInfo maps tags to corresponding work type fields to patient info table.

TagToInfo table contains following informations

WorkTypeID
TagName
FieldName


Steps

1. Query this table using work type ID
2. Prepare insert query or use a stored procedure to insert the contents
3. This functionality to be added in formatdoc class as a function which will be called after saving the formatted doc .

User interface to configure fields

Work type design UI has to provide a tab to configure tag name to field name

Tuesday, October 26, 2010

DateWiseDelivery

If datewise delivery flag is enabled ready to deliver files to be delivered in to the
date folders. The date folder to where files to be delivered is determined by the
CustomerDateTime field. Format of the folder is determined by the xxxDirStruct field.

FTP Folder Structure

It seems like FTP folder structure can change from provider to peovider. To make it generic we will allow a structure like this. This is similar to the format string in a print statement. Audio Folder field and Transcript Folder fields may hold a vanilla path or a string mentioned below

#Date

Replace the date string as suggested in the date format settings

#ProviderID

Replace it with provider Id from database

#ProviderNick


#ProviderFirstName


#ProviderLastName


#ClinicID

Clinic ID

#ClinicName

Clinic Name from database

#ClinicNick

This is the nick name or hospitals internal id for that specific lcinic. A field named ClinicNickname holds this

#HospitalID

HospitalId from database

#HospitalName

Hospital Name from databse

#HospitalNick

The Id or unique name used by the hospital to identify itself. A field in the hospital list holds this

#WorkType

This will be implemented later

#TAT

This will be implemente


Examples

Kims/Dougles/#Date/Audio

In this case #Date will be replaced by the formated date string

Kims/#ProviderNick/#Date/Audio

Both #ProviderID and #Date will be replaced by corresponding values

Kims/#Date/UrgentCare/#ProviderNick/Audio


  • Programing Tips
  • Using string function split string using ‘/’
  • In each separate string look for preceding #
  • If there is # use a switch case with defined constants to switch. Corresponding section will return the value. This values used for the tocken . Assemble it to form the full path
  • Must be written as a separate function
  • ATFAS web will verify the validity of string against the permited tockents. Add help tip button show the valid strings with its meaning.

InsertAudioFileList procedure to update CustomerDateTime field

CustomerDateTime fied in the PS_AudioFileList is updated by InsertAudioFileList procedure. This procedure will accept this as a parameter. If this date time is set as null then it will be set to the same as received date time fields. This field is later used to date wise delivery if it is enabled.

FTP collection program to obtain the time stamp of the file using WebRequestMethods.Ftp.GetDateTimestamp method and pass to the InsertAudioFileList field.

Date Wise collection

Program will try to collect files from date folders described above. To overcome the problem of time zones it will also try to see if there is any new files in the previous -current- tomorrows folders.

Setting In ProviderInfo List

FTP program uses a structure ProviderInfo to read and keep provider settings. The above database fiels to be stored as members in the same structure. xxxDirStruct field is used to generate the directory name out of DateStamp.

FTP Date Wise File Collection And Delivery

Settings
  • AudioDirDateWise (int) field in FTPInfo is used to the type of dir structure
  • TranscriptDirDateWise (int) field in FTPinfo is used to decide the structure of delivery directory
  • AudioDateDirStruct (string) determined the structure of date wise folder. In the settings screen user can pick the folder structure from a combo box
  • TranscriptDateDirStruct (string) determines the structure of date wise folder.
Combination to display in date wise folder selection:

Combination selection will be enabled only if date wise delivery radio button is checked in corresponding section

MM-dd-yyyy
dd-MM-yyyy
yyyy-MM-dd
yyyy-dd-MM
MMddyyyy
ddMMyyyy

ASR Client

This is a tray application running in the same machine as server or on a separate machine. More than one ASRClients can be configured in different machines to share the load. These clients connects to server periodically to download any new files arrived in the server those are configured for ASR.
ASR Client File Download

In the current implementation we will use shared /local folder for ASR clients to access files. In a later stage we may use WCF interface for collecting and sending back the files. An item named ASRAccessPath in the ConfigCollection table is used to configure local or shared path.

  • AutoTranscribe class contains a function named download files from server which is responsible for file download
DownlodFileFromserver(List providerInfoList)
  • It connects to database and query in database view named ASRFileCollectHelper view for each provider in the list.
  • If there is files exists copy the files in to corresponding providers folder
  • Set ASRStatus to Downloaded
  • Finally call start transcribe function in Autotranscribe
ASRConfig File

  • Along with provider name server provider ID to be stored in the config entry in ASRConfigFile
  • This ID is used to collect the template information for formatting section
  • Worktype ID to be stored in the worktype configuration section


RootFolder>e:\VRFolder

VRFolder="e:\VRFolder\Davodi1\Audio" VRTextOutPut="e:\VRFolder\Davodi1\VrText"
VRDocOutPut="e:\VRFolder\Davodi1\VrDoc" DestType="FTP">


ConfigXML="e:\VRFolder\Davodi1\Config\SoapStandard.xml"
WordTemplate="e:\VRFolder\Davodi1\Config\SoapStandard.doc" />

ConfigXML="e:\VRFolder\Davodi1\Config\SoapStandard.xml"
WordTemplate="e:\VRFolder\Davodi1\Config\SoapStandard.doc">





ConfigXML="e:\VRFolder\Davodi1\Config\SoapStandard.xml"
WordTemplate="e:\VRFolder\Davodi1\Config\SoapStandard.doc">





Generation of ATFAS style transcript
ASRRobot is developed to generate word document. ATFAS requires specially tagged files to send though the transcription process. This requires design changes in the formatting section.
  • Determine the work type to use . Depending up on worktype different tagged XML to be used for generating ATFAS transcripts.
  • Connect to database and collect the corresponding tagged text from workTypeInfo table
  • Instead of word bookmarks save the tag name in format xml
  • Instead of inserting text in to word book mark insert that text inside the tags.
  • Save the file.

ASR Integration

ASR Configuration


  • ASR related settings are stored in a separate table linked using provider ID (CS_ProvAsrCnfig)
  • A tab in the provider info is used to configure asr settings
  • ASR profile ID is a unique field along with ASR Machine field
ASR Files

When a new file is added in to the server files are marked as ASR files in TranscriptFilelist table.
A filed named ASRStatus in TranscriptFileList is used for this purpose. [InsertAudioFileList] store procedure will update this field while adding a file.

ASRStatus Values

0

Not an ASR File

1

ASR file in Waiting to Convert status

2

Downloaded by ASR client

3

ASR activity completed


How [InsertAudioFileList] determines files for ASR
  • It checks the CS_ProvASRcfg table for an entry for the provider of the audio.
  • If there is an entry available and AsrEnabled field is set to true then it update ASRStatus in TranscriptFileList table to 1 otherwise to zero

Provider Center Mapping

This mapping is used to direct files from providers to different transcription centers.
CS_ProviderCenterMap table is used to store the mapping info. This table is flexible to
allow hospital to center, clinic to center and provider to center mappings. MapType field
determines the type of the mappings.
MapType :
  1. Provider (doctor) to center
  2. Clinic to Center
  3. Hospital to center
  • A menu in transcription configuration allows to create center to Clinic and Hospital maps
  • A Tab in provider config allows provider to center mapping.
Allocating files to center
  • This is done at the time of file adding to the server , automatically
    by the InsertAudioFileList procedure.
  • AudioFile liat contain a filed named CenterId which is used to determine
    the center where file belongs
  • Allocation logic
  • With the use of provider Id find search in the CS_ProviderCenterMap
    for an entry for that doctor. User proper map type
  • If there is no entry for the provider exists then collect the provider’s clinic id.
  • Check whether a map available for clinic
  • Then proceed to hospital if there is no entry exist for clinic.
  • Finally if there is no entry for hospital present then add the files to default center

Mesg Recipient

Field

Type

Desc

MesgID

int

RecipID

int

ReadStatus

int

PostedTime

Datetime

ReadTime

DateTime

Web : Inbox

Inbox in TFAS will be used for showing the messages from management.
  • Transcriber
  • List newest message in the top
  • If the user opened it show it light color(just like in gmail)
  • Admin
  • Inbox will display system messages
  • In admin screen add a facility create a message
  • This screen will also display previous messages.
  • When a message is clicked it will show a list of users pending to read
  • Message list will show number of recipients, number of recipients read the message and number of recipients pending to read the message
  • Message creation
  • Message can be posted for a single user, a group and to a selected list from transcriber search
  • Table Design
MesgList

Field

Type

Desc

MesgID

int

Mesg Body

string

CreationTime

Datetime

Created by

int

Web : Role Based menus

  • Transcriber
  • Home Page
  • This page will show the details of the loged in transcriber
  • Total work done for the day
  • Total work done for the month
  • Inbox
  • Allocation list : Just shows the files in the queue
  • QAQC results : later
  • Reports
  • Admin
  • Home Page
  • This page will show the number of files in queue
  • Files in different status including playtime
  • Except files in delivered status
  • A bar graph will be more attarctive
  • Hospital wise List in the similar form
  • A BAR graph with files in different REM TAT (8 hour interval)
  • All items
  • Center Admin
  • Home page
  • This page will show file statusc of the center in the same way as admin home page
  • FileAllocation Page : It will show only file belong to the center
  • FileStatus : It will show only files belong to the center. (low priority)
  • Provide center in search
  • Quick allocation will report an error if the center admin try to allocate files to transcribers in other centers
  • Detailed allocation will list transcribers belong to the center.

  • Can be created/Closed from batch management view
  • Files can be added to batch from File status screen
  • File Status screen allows user to search using batches.
  • File allocation screen, allocated files screen etc allows user to search using batch id.
  • All the above view will display only active batches.
  • Batch management screen
  • User can view edit batches.
  • User can search for batches
  • Search fields
  • Batch Name
  • Creation Date, Date range
  • Created By
  • Closed BY
  • Status
  • Display fields
  • Batch name
  • Status
  • Created by
  • Closed By
  • FileCount
  • Total PlayTime
  • Actions
  • Click on batch to view file list
  • File List view Details
  • Fields
  • AudioFileName
  • Provider
  • Transcript Name
  • TAT
  • Status
  • Search
  • Provider
  • Status
  • TAT
  • FileName
  • Summary: This will be shown on top of the list
  • Status
  • Total Files
  • PlayTime
  • A Grid shows status wise list : Number of Files, Play time , Status
  • Actions :
  • Remove selected files from the list
  • Move files to another batch (Implement later)
  • Delete batches
  • Remove files from batch
  • Create: Batches can be created here. But file can be added to batch from Filestatus screen only. In future we can provide a wizard here.

Steps

  • Select the files in the file status view
  • Press create button
  • This will pop the batch creation dialog
  • If the add files check box is selected all selected files will be added to current batch.
  • If exclude files box is checked do not add files those are already member of another batch
  • Add files to batch from file status view

Managing Batches

  • Can be created from fileStatus view
  • Popup a dialog to create a batch
  • Provide a check box in the dialog to add selected files. Files must be selected in the file status view.

File batches

PS_JobBatches

Field

Type

Desc

BatchID

int

Primary Key :Starts from 1

BatchName

String 100

Unique key

CreationDate

DateTime


Created By

Int

User ID of loged in user who creates it

NumJobs

Int

Number of jobs added to it

Status

int

1.Active

2. Closed: A scheduler to close it if all files are in delivered status

ClosedDate

DateTime


ClosedBY

Int

If it is closed by system field holds system used ID.


BatchID field in PS_AudioFileList links files with a batch.

ditor: Role based Send options in Teditor

Based on roles list the send options in TEditor
  • Transcriber
  • Transcribed: If the transcriber marked file as transcribed it will always
    go to that status only
  • Finalize: Direct send % will apply for the files send as finalized
  • Editor
  • Edited: If the Editor marked file as edited it will always go to that status only
  • Finalize: Direct send % will apply for the files send as finalized
  • Proofer:
  • Proofed: Direct send is applied for files send in proofed status
  • Doubt
  • Editor : Check For Well Formed Tags
  • When user press done button check whether all tags are well formed.
  • Rules
  • Begin Tags must start with <>
  • No space or any special characters permitted between
  • No nested tags are permitted.
  • Ending Tags must be started with <>
  • Write a class to verify this. It will accept a string and returns locations
    to highlight if there is errors. Location lists contains a structure with starting
    point, ending point, and reason
  • If Tag missed ending tag high light in Yellow
  • If a nested tag found highlight it in RED
  • If an ending tag found without a begin tag highlight it in BLUE
  • If a begin tag found with invalid characters highlight in PINK
    Note : There is a function used in format transcript for find tags. That will
    give you an idea how to write the code.

Reports

Transcriber:
These reports are for transcribers. This will be shown to them when they login. They can only access their reports.
Search
  • Date Range
  • Work Type
  • Action
  • Provider
Fields
  • FileName
  • Provider
  • Date
  • LineCount
  • Quality (Later)
  • WorkType
  • Action
Note : Display Total Line count
Admin:
  • These reports are available for admin
  • Transcription
  • Search
  • Center
  • Transcriber
  • WorkType
  • Provider
  • Fields
  • FileName
  • Date
  • Center
  • Provider
  • LineCount
Note : Display Total Line count
  • Provider
  • Provider Based
  • Search
  • Hospital
  • Clinic
  • Provider
  • DateRange
  • WorkType
  • TATAcived
  • TAT
  • Fields
  • AudioFileName
  • TranscriptFileName
  • Date
  • LineCount
  • WorkType
  • TAT
  • TATAchived
Note : Display Total Line count

  • TAT Summary
  • Search
  • Hospital
  • Clinic
  • Provider
  • DateRange
  • Fields
  • TATAchived%
  • TATMissed%
  • TATMissedBy24%
  • TATMissedBy48%
  • TATMissed>48%
  • Playtime
  • Search
  • Hospital
  • Clinic
  • Provider
  • DateRange
  • Fields
  • Date
  • Provider
  • Playtime
  • LineCount