LB, you are awesome! You have helped me several times over the past 13 years! Thank you!
Your example worked perfectly. I added the medication IDs to the query and changed the syntax a little. It works great! It is exactly what I needed. Thanks again! This will help me get out of the box...
No, there will be one encounter per patient and multiple patients. I will suppress all of the detail and just have the summary crosstab. This is what it will sort of look like.
The first column are the values from the grouped datediff values. The fourth column is the count of the patient...
My intention is to get a specific patient encounter based off of the admission date. From there, I am looking for a specific documentation record and that date. I am using the specific documentation date(only one) and the minimum order date to calculate how long it took from the documentation...
Hi kray4660,
Could you give me an example of how you would accomplish this with sql code? I have a main table that the order table(order date) is linked to. If I understood how to link the code back into the main table, I could do it. I believe that you would create a little query that would...
Hi,
I have created a report in Crystal 13. I have a formula that is used to tell how many days between two dates. The "Admit Date" is constant, but the second date could have multiple values. I am using the minimum(second date) in my datediff.
The first formula is to get the minimum date...
...but this data is going to come from the same table that all the data resides in. Here is what I have for the current trigger. USE [IPS_PROD]
GO
/****** Object: Trigger [dbo].[TR_DOCOFDAY_U] Script Date: 03/09/2011 20:25:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER...
I am using Python 3.1. I am trying to start a process (.exe) on a remote server. I am running the script from another server. When I run this code, the process starts on the remote server and can be seen in the processes in the task manager. I need this process to be visible so I can monitor...
...If Trim(Len(strDay))<2 Then strDay="0"&strDay End If
strFileNameExt=Year(DateAdd("d",-1,Date))&strMonth&strDay
'***** Open Text File *****
Const ForWriting = 2
Set objFSO = OpenObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile ("C:\PERSELOG\PERSE.TXT")...
Hi, I have an Access 2003 database that uses SQL 2005 linked tables. I have no problem opening the database and viewing the data, but if I want to add a record to the table or update a record, I can not do it. The options to insert a record are grayed out. The SQL tables are linked via ODBC...
Hi, I have a string that looks like this.
Patient Transferred to:CSCU
I want to split out the data from the right side of the :. I tried this, but it did not works.
split(description,":")[1] This returns Patient Transferred to. I want to get CSCU. Can anyone help with this function. Thank you
I am embarrased to say you were right. There were no matches on PAT_ACCT_NBR. I should not have assumed that there were. I guess that is a lesson learned. Thank you
This is the results of the query.
IPS_DSCHRG_DX varchar
BILLING_TABLE nvarchar
CURRENT_CENSUS nvarchar
DISCHARGE_TABLE nvarchar
It does look like the query is firing, but no updates. I am also learning about creating the proper keys in my tables. In the BILLING_TABLE, the PK is a combination...
George, I made the change to the bulk insert, but it is still not updating the billing table. Is there a way that I can make sure the trigger is firing? I thought I saw something about a print command in another trigger. I will go look. Thank you
This is the bulk insert command. There might be another way to do this. I am self taught and have a lot more to learn.
bulk insert DISCHARGE_TABLE from 'c:\ftpfiles\ftpdsg\dsg_ips.txt'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.