Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gromboy

    Formula for reporting on breast cancer patients

    Hi, I'm working on a report from a sql server db which has chemotherapy data in it. I'm looking at Breast Cancer treatments. The patient will have elements of treatment against a diagnosis. For example Patient 1 will have a diagnosis of "Carcinoma of Breast Metastatic , HER2 positive 1st...
  2. gromboy

    GromBoy you have broken Thread Selecting 1st Appt Date

    Sorry guys....... Won't happen again Steve
  3. gromboy

    Selecting the first appointment date

    I see...This is the query I use at the moment... Could I add the min and max into this query and run it as a command ? SELECT "PATREGIM"."DISTRICTNO", "PATREGIM"."REGIME", "PATREGIM"."CYCLE", "PATREGIM"."CYCLEDATE", "PATREGIM"."ID", "PATREGIM"."STATUS", "PATREGIM"."MAXDAYS"...
  4. gromboy

    Selecting the first appointment date

    OK...I thought it might be something to do with the min and max... However a view or command ?.... I'm not sure how to do that....sorry.... Are you able to help ? Steve
  5. gromboy

    Selecting the first appointment date

    Ian, Following on from this...I have created a formula which groups together the output of the above formula. It looks like this IF {@weeks between last cycle and date of deat} IN (0 to 4) then "Up to 1 Month" ELSE IF {@weeks between last cycle and date of deat} IN (5 to 8) then "1-2 Months"...
  6. gromboy

    Selecting the first appointment date

    Ian....thanks a bunch..works a treat
  7. gromboy

    Selecting the first appointment date

    Hi Ian, I can't seem to get the formula to work... The fields are called {PATREGIM.CYCLEDATE} - Date/time field {PATREGIM.DISTRICTNO} - the patients number varchar field I have grouped the {PATREGIM.DISTRICTNO} field first and from this formula datediff("d"...
  8. gromboy

    Selecting the first appointment date

    Hi, I have a db where a hopsital patient has appointment dates of treatment. It is a date/time field. I need to pull the first date for the patient from a list of appointment dates and calculate the difference between this and the last appointment date... Does anyone know how this could be done...
  9. gromboy

    negative time, need to remove "-"

    Hey....nice one...that worked a treat ! Thanks a bunch Steve
  10. gromboy

    negative time, need to remove "-"

    Hi, Thanks for your reply... I added my formula field into the replace formula as Replace({my_forumula},'-','') But it didnt do anything... The abs(my_formula) gave an error "A number or currency ammount is requireed here" Any ideas ? Steve
  11. gromboy

    negative time, need to remove "-"

    Hi, I have the following formula: numbervar mindiff; if isnull({PATDRUG.APPT_START})or trim({PATDRUG.APPT_START}) in [":",""] or isnull({PATDRUG.PRESC_TIME})or trim({PATDRUG.PRESC_TIME}) in [":",""] or isnull({PATDRUG.START_TIME})or trim({PATDRUG.START_TIME}) in [":",""] or...
  12. gromboy

    Question on presenting data

    Hi LB, I've finally got back to this issue ! I don't have a {table.alldates} field, only a TEST_DATE field for the toxicity test date, and an APPT_DATE for the appointment date. Is there another way ? Steve
  13. gromboy

    Question on presenting data

    Thanks for your quick reply...I'll see if I can do what you've suggested.. many thanks Steve
  14. gromboy

    Question on presenting data

    Hi, I have a chemotherapy database which has treatment cycle information. For example the patient may come today on Day 1, in a week for Day 8 etc.. During this time nurses may record whats called toxicity scoring, eg for vomiting 1-4 based on severity etc.. or hair loss, diarhoea etc I can do...
  15. gromboy

    Extract from string

    ok... thankyou all for your help :)
  16. gromboy

    Extract from string

    thankyou both... I will remember that Steve
  17. gromboy

    Extract from string

    Hi, I have field called {RES6} which has a test name and value in it. the format of the field is CA125~56 The number is what I need extracting from the string...so basically the number after the "~". TheCA125~ is always constant I'm not so hot on these sort of things... Any help greatly...
  18. gromboy

    Bad Time Format String error

    thanks LB ! That works a treat Steve
  19. gromboy

    Bad Time Format String error

    sorry..from where ? I took out this bit but got errors if mindiff = 0 then "" else totext(hrs,"00")+":"+totext(mins,"00" Steve

Part and Inventory Search

Back
Top