Blog Archive

Tuesday, October 26, 2010

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.

No comments:

Post a Comment