Why am I not surpirsed! Thanks!
--
Nancy Anthracite
On May 29, 2025, at 3:58 PM, Nancy Anthracite <nanth...@earthlink.net> wrote:
--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hardhats/5028676.bCDJkKcVGE%40owl.
Yes. Unfortunately, the correct approach is also the most inefficient...
The correct approach is to represent each node in a M[UMPS]
structure as an object,
let's call it "node", and each node is a {"Value": whatever or
null, "Descendants": whatever object that is either null or a
node}.
Now, of course, this would make for an extremely verbose JSON stream, especially since, in most cases, either the Value or the Descendants are a "null".
So, I agree with one of the previous respondents: the approach you should choose depends what you know about the actual structure you're dealing with.
Ed
To view this discussion visit https://groups.google.com/d/msgid/hardhats/486D2601-B896-486B-B936-B33C1421D60F%40gmail.com.
1 Introduction
The ENTITY (#1.5) file can map Veterans Health Information Systems and Technology Architecture
(VistA) files and fields to any data model, including common standards such as Health Level Seven
(HL7) Fast Healthcare Interoperability Resources (FHIR) or InterSystems’ Summary Document
Architecture (SDA). The VA FileMan DDE utility uses the ENTITY (#1.5) file as a template for
producing eXtensible Markup Language (XML) or JavaScript Object Notation (JSON) output from
VistA data.
1.1 What is an Entity?
An Entity is simply a collection of data elements, similar to a data class in an object-oriented system. If
a specific data model is being followed, that model determines the tag names and allowable values of
each element. The Entity assigns each tag to a file and/or field in VistA, transforming the data as needed
to meet any requirements or constraints of the model.
Usually, an Entity returns a single record from a VistA file, accepting a record Internal Entry Number
(IEN) and returning the defined fields as the data elements. An Entity can accept any string as its input,
however; for example, an Entity could be created to take a VistA name string and return its components
as separate elements within a group.
Like classes, entities can be nested. Commonly used data elements, such as locations, for example, can
have their own Entity that accepts a pointer to the HOSPITAL LOCATION (#44) file and returns a
group of attributes (code and description, specialty, phone#, etc.) from that file, which can then be
embedded in other entities.
1.2 VA FileMan DDE Utility
DDE is the VA FileMan utility that uses an Entity to build XML or JSON output. The ENTITY (#1.5)
file is stored in the ^DDE global. Entry points $$GET1 and GET in routine DDE are supported calls
that can be used to return VistA data, one or more records at a time, according to the specification
defined by the Entity.
The exercises in this tutorial use the Data Mapping [DDE ENTITY MAPPING] options on the Other
Options [DIOTHER] menu in VA FileMan.
From VA DOC. This could be helpful
art