Viewing 15 posts - 76 through 90 (of 197 total)
Final working code, thanks, Seth.
DELETE FROM ptSchedule
INSERT INTO ptSchedule
([MRN]
, [ApptTypeID]
, [ResourceId]
, [StartDtTm]
, [EndDtTm]
, [Description]
, [Notes]
...
October 17, 2008 at 1:02 pm
Take a look at my code to do the insert, that should show you what I'm trying to do.
October 17, 2008 at 9:42 am
Garadin (10/17/2008)
Thanks for the creation scripts. Is there any reason you can't simply do this?
I don't see what that does for me.
October 17, 2008 at 9:17 am
Creation and dummy data scripts avail here:
October 17, 2008 at 8:51 am
While that helps me some, I can't make it work in this:
DELETE FROM ptSchedule
WITH MyAppointments (ResourceName)
AS (SELECT REPLACE(REPLACE(REPLACE(Resource, '-SOUTH', ''), '-NORTH', ''), 'CHRISTOPHER J ', '')
...
October 17, 2008 at 8:11 am
will post the exec plans and index data tomorrow morn.
October 15, 2008 at 4:38 pm
MrBaseball34 (10/15/2008)
I guess I can but getting past the speed issue seems to be the biggest problem.
Here is all data for the MRN 5079
October 15, 2008 at 4:37 pm
I guess I can but getting past the speed issue seems to be the biggest problem.
October 15, 2008 at 4:18 pm
smunson (10/15/2008)
CREATE PROCEDURE dbo.PTENCOUNTER_STUFF (
@MRN varchar(5), -- '5079'
@DIC_Status varchar(10),
@ApptTypeID smallint
)
AS
BEGIN
SET NOCOUNT ON
;WITH DICTATION AS (
SELECT MRN, Status, DOS
FROM ptDictation
WHERE MRN = @MRN AND
Status = @DIC_Status
),
SCHEDULE AS...
October 15, 2008 at 4:17 pm
jcrawf02 (10/15/2008)
Can you de-identify the data to meet HIPAA reqs? John/Jane Doe and scramble the id numbers or something?
I will try but there are 340,000 ptEncounter records, 610,000 ptDictation records...
October 15, 2008 at 4:12 pm
Matt Miller (10/15/2008)
Did you ever get a chance to try my version? Assuming you get the right results - it should be a little faster than your...
October 15, 2008 at 4:10 pm
Gary...
This one returned 1481416 records in 23 secs...
HOWEVER, there are only 340501 records in the ptEncounter table.
Gary Johnson (10/10/2008)
SELECT e.MRN,
CASE
...
October 15, 2008 at 11:15 am
Yes, just as Gary showed but it didn't help.
October 15, 2008 at 10:51 am
rbarryyoung (10/14/2008)
Have you in-lined the functions yet?
HUH?
October 15, 2008 at 7:32 am
Essentially, I will be providing indicators in the UI based on the values returned in the
DictationState column returned from the stored procedure based on this criteria:
•Green – An entry in...
October 14, 2008 at 8:19 am
Viewing 15 posts - 76 through 90 (of 197 total)