Blog Archive

Tuesday, October 26, 2010

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.