Nueva publicación

查找

Artículo
· 23 mayo, 2024 Lectura de 2 min

TIMESTAMP type format

InterSystems FAQ rubric

The TIMESTAMP type corresponds to the %Library.TimeStamp data type (=%TimeStamp) in InterSystems products, and the format is YYYY-MM-DD HH:MM:SS.nnnnnnnnn.

If you want to change the precision after the decimal point, set it using the following method.

1) Set system-wide

Management Portal: [System Administration] > [Configuration] > [SQL and Object Settings] > [General SQL Settings] 
Default time precision for GETDATE(), CURRENT_TIME, CURRENT_TIMESTAMP. You can specify the number of digits in the range 0 to 9.

For details on the settings, please refer to the document page below.
Additional configuration settings - General SQL settings - SQL tab

2) Specify with SQL function

Using the argument of CURRENT_TIMESTAMP(), you can specify the number of digits after the decimal point in the range of 0 to 9.
*The value returned by CURRENT_TIMESTAMP() is the current date and time in the execution environment's time zone.

USER>do $SYSTEM.SQL.Shell()
SQL Command Line Shell
----------------------------------------------------
 
The command prefix is currently set to: <<nothing>>.
Enter <command>, 'q' to quit, '?' for help.
[SQL]USER>>  << entering multiline statement mode, 'GO' to execute >>
        1>>SELECT
        2>>   CURRENT_TIMESTAMP AS FullSecStamp,
        3>>   CURRENT_TIMESTAMP(2) AS FracSecStamp,
        4>>   $HOROLOG AS InternalFullSec
        5>>go
1.      SELECT
           CURRENT_TIMESTAMP AS FullSecStamp,
           CURRENT_TIMESTAMP(2) AS FracSecStamp,
           $HOROLOG AS InternalFullSec
 
FullSecStamp    FracSecStamp    InternalFullSec
2021-10-12 15:46:18     2021-10-12 15:46:18.83  66029,56778
 
1 Rows(s) Affected
statement prepare time(s)/globals/cmds/disk: 0.1017s/1046/177936/15ms
          execute time(s)/globals/cmds/disk: 0.0002s/0/651/0ms
                          cached query class: %sqlcq.USER.cls7
---------------------------------------------------------------------------
[SQL]USER>>


Please refer to the document page below for details.
CURRENT_TIMESTAMP

Comentarios (0)0
Inicie sesión o regístrese para continuar
Pregunta
· 23 mayo, 2024

Need to evaluate rule based upon the content of "Z" segment, and only process if it exists on a table.

Receiving HL7 messages from our EMR, and processing to send out to downstream system.  These are SIU_S12 messages, with a custom ZOR segment added by the EMR to include order information.  The purpose of including this segment is to allow us to only send messages to the vendor that contain a procedure ID that is included on the list of procedures desired by the vendor.  These values are in a LUT with the procedure ID in the key field, and a value of 1.

We are recently upgraded to 2023, so I'm strugging with two things:  the new look of the rule editor, and the exist expression to validate that the contents of ZOR:3.1 match a value on the table.

Rule so far (I previously tried with HL7.{ )

Thanks in advance!

3 comentarios
Comentarios (3)3
Inicie sesión o regístrese para continuar
Anuncio
· 23 mayo, 2024

Just launched: Deltanji source control (version 8)

George James Software is excited to announce that a new version of Deltanji source control is now available. 

Key updates in version 8 include: 
- UI refresh with a modern look and feel
- UX updates that provide a smoother and cleaner user experience
- Task Server II which is simpler to configure and provides more security granularity and control. 
Check out the release notes here.

 

Deltanji 8 is available now, so if you're a user looking to upgrade, please email support@georgejames.com.

If you're not a user but want to learn more about Deltanji, we'd love to give you a demo. Just email us at info@georgejames.com


Deltanji User Group

   

You're also welcome to join our User Group on Thursday, May 30th at 3pm BST | 10am EDT. 
We'll be showing the highlights of the new release, and it's a great opportunity to ask us or current users any questions you may have. 

You can sign up via Google Forms here
If you can't make the session but would like a copy of the recording, please let me know by sending me a direct message. 

3 comentarios
Comentarios (3)2
Inicie sesión o regístrese para continuar
Pregunta
· 23 mayo, 2024

Sending FHIR bundle object to a router failing

I would like to send bundle object to a router and then
 perform a DTL with in the routing rule ( this BundleObject as a source to my DTL).
 during this process , I get below exception 
 
 reqStream = json content in a stream
 
 Set BundleObject=##class(HS.FHIR.DTL.vR4.Model.Resource.Bundle).FromJSON(reqStream,"vR4")
 
 Set tSC = BusinessService.SendRequestSync("SAMPLE_ROUTER", BundleObj)
 
 expection :
 
 ERROR <Ens>ErrException: <METHOD DOES NOT EXIST>zNewRequestMessage+4^Ens.MessageHeader.1 *%GetSwizzleObject,HS.FHIR.DTL.vR4.Model.Resource.Bundle -- logged as '-' number - @''

3 comentarios
Comentarios (3)2
Inicie sesión o regístrese para continuar
Pregunta
· 23 mayo, 2024

SYS.VSSWriter is generating alerts in Messages.log

Hi

I've started seeing the following alerts in the message log of my Primary HealthConnect server

05/23/24-11:20:09:718 (6732) 2 [Utility.Event] Process 7248 generated 3 alerts in 10 seconds. Suspending alert notifications for this process.

Process 6732 corresponds to 

EXECUTION DETAILS
Process State: RUNW
Last Global Reference: ||ISC.BackupDBArray("USER")
Routine: SYS.VSSWriter.1
Location: VSS Writer
Source Location: +33^SYS.VSSWriter.1

 

What does this do? What I can I do to stop this?

Cheers

5 comentarios
Comentarios (5)2
Inicie sesión o regístrese para continuar