Nova postagem

查找

Pergunta
· Mar. 21

VSCode - trying to use <sql> tag to call SELECT statement

I was using VSCode to edit a DTL because it seemed easier to copy/paste code from parts of the DTL I was editing. I tried to add <sql> tag and code to call a SELECT statement, but when I compiled I got the following error...

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetSourceDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetSourceDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetSourceType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetSourceType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetSourceType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetTargetDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetTargetDocType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetDocType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'GetTargetType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'GetTargetType:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(GetTargetType) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR <Ens>ErrInvalidDTL: Invalid DTL

  > ERROR #5490: Error running generator for method 'Transform:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(Transform) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR #5001: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))'

  > ERROR #5490: Error running generator for method 'Transform:osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

ERROR: Ens.DataTransformDTL.cls(Transform) of generated code compiling subclass 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

    > ERROR #5030: An error occurred while compiling class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization'

Detected 10 errors during compilation in 0.045s.

 

Class 'osuwmc.Epic.MFN.DTL.EpicMFN949002Normalization' contains an invalid DTL document:

ERROR <Ens>ErrXMLValidation: Error in XML Validation: element 'sql' is not allowed for content model '(annotation?,((true,false)|(false,true)|(true)|(false)))' while processing Anonymous Stream at line 62 offset 6 %2

Is this just something that isn't available for editing within VSCode?

2 Comments
Discussão (2)3
Entre ou crie uma conta para continuar
Artigo
· Mar. 21 1min de leitura

Como colocar logs de aplicativos na global ^ERRORS

Rubrica de FAQ da InterSystems
 

Pode ser feito com o TRY-CATCH:

 #dim ex As %Exception.AbstractException
 TRY {
    //Code that causes an error
  }
  CATCH ex {
     do ex.Log()
  }

Se você usar o ^%ETN, chame-o a partir do bloco BACK (BACK^%ETN).

Por favor, dê uma olhada também no artigo relacionado: Como buscar erros de aplicação (^ERRORS) usando um comando

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Mar. 21

[Vídeo] Desbloqueando o aprendizado prático com o Instruqt

Olá Comunidade, 

Recentemente, @Dean Andrews, Chefe de Relações com Desenvolvedores, conversou com a Instruqt para compartilhar como a InterSystems está transformando o engajamento dos desenvolvedores:

>> Unlocking Hands-On Learning with Instruqt <<

“O Instruqt é útil para tutoriais interativos onde compartilhamos casos de uso específicos de nossa tecnologia com nossos clientes, parceiros e desenvolvedores ao redor do mundo... É uma maneira poderosa de mostrar aos nossos clientes e parceiros o quão fácil é usar a tecnologia InterSystems.” - Dean Andrews

Ele mencionou que, com uma comunidade global de mais de 22.000 desenvolvedores, a InterSystems precisava de uma maneira escalável e eficiente de mostrar sua tecnologia - da interoperabilidade de dados à IA generativa. Entre no Instruqt - uma plataforma flexível que permite a entrega de tutoriais interativos tanto sob demanda quanto em eventos ao vivo, como hackathons e Summits.

Ao integrar o Instruqt ao InterSystems Developer Hub e aos eventos, a InterSystems aprimorou o envolvimento dos desenvolvedores, reduziu a sobrecarga operacional e forneceu experiências de aprendizado imersivas, tudo isso tornando mais fácil do que nunca para os desenvolvedores explorarem nossa tecnologia.

Confira a entrevista completa para ver como estamos moldando o futuro da educação de desenvolvedores!

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Mar. 21

[Video] Unlocking Hands-On Learning with Instruqt

Hey Community,

Recently, @Dean Andrews, Head of Developer Relations, sat down with Instruqt to share how InterSystems is transforming developer engagement:

>> Unlocking Hands-On Learning with Instruqt <<

“Instruqt is useful for interactive tutorials where we are sharing specific use cases of our technology with our customers, partners and developers around the world... It's such a powerful way to show our customers and partners how easy InterSystems technology is to use. - Dean Andrews

He mentioned that with a global community of 22,000+ developers, InterSystems needed a scalable, efficient way to showcase their technology - from data interoperability to generative AI. Enter Instruqt - a flexible platform that enables the delivery of interactive tutorials both on-demand and at live events like hackathons and Summits.

By integrating Instruqt into InterSystems Developer Hub and events, InterSystems has enhanced developer engagement, reduced operational overhead, and provided immersive learning experiences - all while making it easier than ever for developers to explore our technology.

Check out the full interview to see how we’re shaping the future of developers' education!

Discussão (0)1
Entre ou crie uma conta para continuar
Discussão
· Mar. 21

Transforms in COS over DTL

Hi All,

  After doing IRIS/Ensemble etc for 20 years I've come across a company who have very odd view, especially about DTL's and routers.

  They have convinced themselves to use COS for transforms (including HL7) and for routers (and one of their 3rd party providers agree!)

  Their reasons are; efficiency, compatibility, flexibility, power and re-usability.

 

  Of course these reasons are wrong!

  • Efficiency, difference between 1-2 lines compared to a DTL/XML going to 3-4 lines (This also assumes the COS code is well written)
  • Compatibility, surely less with COS as its subject to developer style?
  • Flexibility, you can add <code> blocks in DTL anyway
  • Power, no idea what they are saying here?
  • Re-Usability,?

 

  My counter arguments are;

  • Non technical users can see the DTL in a GUI
  • You don't have to remember PID:5 is patient name for example
  • You get auto complete on using schema's
  • You will miss out on DTL specific functions (example lookups), albeit you could call the look up code in COS
  • Its bloody insane not to use DTL's for HL7!

 

  Anyway I could do with some other peoples opinions or examples I can present to convince them DTL's and routers (using rules) is the best way.

 

  Please help!

3 Comments
Discussão (3)3
Entre ou crie uma conta para continuar