Blog Archive

Sunday, July 17, 2011

TFAS Server Session Info Display

This is en extention to TFAS server console to make it look professional and more informative.
As the server load increase we may need to kow number os simultanious sessiona and whether there is any session remain live due to wrong client implementations. This will help us to keep track of sessions

As far as I know there is no direct way to determin number of active sessions in WCF server implementation. To over come this we will create a bass class from all our service classes to derive.
Base class will named SessionBase and it contains a constructor and destructor. Which is most important thing in the implementation. In addition to that it will contain a pair of static public events

SessionBase
{

public SessionBase()
{

}

~SessionBase()
{

}

}

SessionEvent
{
EventType ( Created, Destructed)
StartTime
ServiceName
SessionID
}

Class Structure

Contructor
  • Collect creation time
  • Create SessionID (Use Time Tick + Rand Number)( Or by incrementing a static member . Use interlocked increement)
  • Fill Event arguments with ServiceName (use this.GetType()), sessionID etc
  • Fire the event
Destructor
  • Fill Event arguments with ServiceName (use this.GetType()), sessionID etc
  • Fire the event

Saturday, July 16, 2011

Transcript Parts Archive Table

It seems like we need to generate so many reports which includes transcript information as well as in some cases the content. It is also used full for generating differently formtaed files from the content. (Like Hl7,XML etc)
To achive this I am trying to propose a method. This method has tha advantage of its simplicity at the same time some disadvantage.
It contains a simple table which keeps the transcription part in the form a name value pair. Table design is given below

Table Name: Transcript Contents:

<!--[if gte mso 9]> Normal 0 false false false EN-US X-NONE X-NONE

TranscriptID

Int

Link to transcript table

TagName

string

Contains the tag name in the template provided to the transcriber to enter the contents

Content

String (max size)




The component which is responsible for formating and creating the final document is responsible for populating this table.

Once this table is created the reports that needed informations form the file can be generated from this table.

Disadvantage:
  • Table can grew big pretty soon
  • Tag fields data duplication
  • Inefficient to excute sql queries

How to Genarate Reports
Since this table holds all information about a transcript it is easy to genrate reports from it.
Example 1
For examaple say a word report need to generate which contains following informations for a particular day

PatientName

WorkType Name

DOB

VisitDate

Provider name

TranscriberName


This report can be easily generated by joining
TranscriptCollection.ProviderID->ProviderList>ProviderID for Provider Name
TranscriptCollection.WorkTypeID -> WorkTypeLis.WorkTypeID for worktypeName
TranscriptCollecton.TranscriptID->TranscriptParts.TranscriptID for DOB,VisitDate ,PatientName
TranscriptCollecton.TranscriptID->TranscriptionHistory.TranscriptID for transcriber Name

Create view by joining tablses for following information and query it for the date. Then fetch the needed information and generate the document.

Example 2:
Genrating a master documemt combining all transcript together for a provider for a particular date
TranscriptCollection.ProviderID->ProviderList>ProviderID for Provider Name

TranscriptCollecton.TranscriptID->TranscriptParts.TranscriptID for transciption contents

Create a view like above and then query with transcription date and generate a word document programatically.





Friday, April 1, 2011

File Add Utility : Pick up other files

While adding files it is needed to pick up some other files which may contain patient information's.
provide an option to select files like .XML, .ini, etc. Also a facility to pickup any files with same name as audio file and a different extension

ASR: Tags and subheading handling

ASR files are by default filled inside a content tag. It is transcribers responsibility to add proper sub heading to the contents. If we allow transcribers to add that manually there is a chance that they may use different types of heading. In order to avoid this we will provide them a list of sub heading list brought from the sserver based on the worktype selected.

To Do : Server Side
While generating ASR files add a following tags in to the ASR generated files

YES<\ASR>


To Do : Editor

  • While opening the files add a cehecking to determine ASR files. Check whether ASR tag given above is present
  • If so check whether worktype tag is empty.
  • If worktype tag is empty open the work type selection window
  • Collect the tags and keep it a collection and update the worktype tag
  • Keep this tags in a temporary file named as currentfilename_tags.txt
  • Provide a facility for transcriber to add tags from this list.(Just like subheadings)
  • If the transcript file is opened from directory use the tags file loag to load the tags in to the memory collection

Tuesday, February 22, 2011

Doctor Desktop:User Control for Word Document editing

It is found very difficult to implement word document editing with out implementing activeX components. To over come this difficulty it is decided to implement a windows user control which can be hosted in IE browsers. This user control will do the complete editing requirement with the help of of webservice

  • When it is first started in IE it will display the login form for the doctor to login
  • Then just like the doctor home page we implemented right now it will display the list of file with query facility.
  • This list and contents are bought from server using a web service
  • Doctor can press the edit button or double click it to open the document
  • The web service is requested with document ID
  • Web Service convert the document to RTF with the help of MSWord automation and brings the content and displays that in the RTF editor
  • Doctor can make changed in the RTF editor
  • When user press save botton the RTF content will be send to the web service
  • Web service then saved the RTF content to MSword file

Saturday, January 15, 2011

Multiple Document File Handling

Requiremnts
  • An audio file can contain more than one transcripts
  • This audio file may be allocated to one or more transcribers.
  • While allocating such files to more than one transcriber a time duration to be allocated for each transcriber
  • Finally these files need to be assembled back based on some criteria and send back.
Changes Required
Multiple document files needs an important change in the transcript List table. Initaillay we split the files for convenience in transcription. But finally that will be combined to make single files or few files based on some criteria. At that point onwards we only need to show those combined files and other split files generated during the transcription need to be marked as archived /purged. But we need to keep those entries for the purpose of audit.
This can be implmented as a new flag in transcriptList table. If it is set to purged status then no need to show that in the lists.


TFAS Admin
  • Provide an option to lock provider files from auto allocation
  • Option to split files in to selected number of files
  • In Transcript list add entries for those number of files
  • Also add columns in transcript files to store StartTime in minutes and End Time
  • Name Transcript files with split numbers at the end
  • It will be nice to provide allocating files to transcribers in the same spliting window
  • Hide purged filed from listing in queries

TFAS Server
  • While allocating files automatically skip those providers not set for auto allocation
TEDitor
T editor to show the Start Time and End Time allocated for a transcriber in file manager window

Final Check Utility

Merging Filed Of a Single Audio File
  • Add facility to select transcripts of a Audio file and merge it together.
  • After merging it creates a new word file with the name suggested by the user.
  • The transcripts those merged together will be marked as purged
  • Provide a facility create a report on merged files. To this we need a new table named Merge List. It will contain audioID, MergedFile's Transcript ID and list of transcripts merged together. Table design is given below
  • Generated list can also be assigned as a new transcript for delivery purpose. In this case we need to generate new entry in transcript table to deliver it
MergeListMaster
Filed Desc
MegeTransID TranscriptID of the newly created merged transcript
Date Creation Date Time
MegedBy User ID
MergeList
Filed Desc
AudioID Audio ID of merged file
TransID Transcript Id of merged file
MergeTransID Transcript Id of final merged file

Merging File Of Multiple Providers

  • This may be rare case . But in some cased they want to merge files of clinic /lab together.
  • In such cases we need to collect input like to which provider this final file to be allocated. This is needed because we have FTP deliver settings available for provider only. As a work around we can connect final file to a default provider in that clinic/lab

Friday, January 14, 2011

Uisng MS Word as Editor for TFAS

It is a good idea to provide MS Word support in TFAS as editor. In some cases it is better and fast to allow user to start using MS word templates where templates and formatting needs are complex.

In order to achieve this goal we need to develop a program which is capable to launch MSword and audio.

  • It downloads audio files as usual
  • while opening an audio it brings up the work type window
  • Based on selected work type it downloads word template associated with it and opens in the MS word with corresponding file name.
  • After completing it sends back the MS word file
TFAS Admin Changes
  • Provide a facility to set file handling type for Clinic and Doctors
  • Different File Handling types are
  • MSWord
  • Tagged Text
  • Selection set for a clinic will inherit by the providers of that clinic by default.
  • But it can be over ridden at the provider settings screen.
  • This filed to be added in clinic details as well as in provider details table
Changes Required in TEditor
  • Convert File Manager to a User control and Host it as the main starting page of TEditor
  • FileManager to load TEdior Window or MSWord Depending on the file type
  • If it is MSWord type FileManager has the additional responsibility of bringing the template file
  • In the current implementation it brings the Tag List from server when user selects the worktype in the editor. Here instead of just tags list ,depending on FileType File manager has to request for TagList or WordTemplate file.
  • Once it downloaded word Template it rename and copy the word template to the Transcript folder in the name of the audio. Just like TEditor creates the file.
  • After creating the doc file (just the renamed template) from the template file open that in MSWord
Advanced : These features are good to be implemented.
  • While downloading a template create a folder for that provider and copy the word template to the folder
  • Before downloading a template file it can check the last updated time with server. If the file in the folder and the file in the server has the same time it can skip downloading the file.
  • To do this add updated time of worktype templates in the data set returned by the GetWorkTypeList server function
Changes In Server
  1. File Receive From FTP/ Remote File Add
  • Depending on the FileType settings in the Provider Details file type filed to be set in the
    Transcripts table. This new field to be added in the Transcripts Table. This can be done by modifying the stored procedure
2. Work Type Template download
  • Provide an Interface to download wordTemplate assigned to a work type in WorkTypeInfoClient interface
  • Modify WorkTypeList function to return updated date time and wordtemplate file name
3. Format component to be modified to skip word files and just copy it forward.
  • In future we will be collecting patient information's from both Taged files as well as from the word files. In case of word file this will be done with the use of book marks

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