Capture single message MetaData

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Capture single message MetaData

  • Creator
    Topic
  • #55068
    Paul Johnston
    Participant

      Hi All,

      I know that I can view the Metadata for a Single message from the GUI SMAT message editor (attached screen shot)

      Is there a method I can capture the MetaData (specifically TIME Data ) from a previous days SMAT file via Command line or TCL .

      And is it possible to capture the Metadata for a single message and based on a Patient data. eg. Medical Record Number or Patient name

      Thanks

    Viewing 4 reply threads
    • Author
      Replies
      • #83974
        James Cobane
        Participant

          Paul,

          If you are using file-based SMAT, all of the metadata for the messages is stored in the .idx file in a keyed-list format.  If you are using SMAT Database, the metadata is stored as discrete columns in the database file and the message is stored as a BLOB in a column.  So, you should be able to write Tcl code to extract from either source.

          Jim Cobane

          Henry Ford Health

        • #83975
          Paul Johnston
          Participant

            Jim ,

            Thank you.  We are using file based SMAT files so I can look at the .IDX files. Any idea on how to match the metadata of a single message from the .MSG file to the .IDX file.  ?

          • #83976
            James Cobane
            Participant

              Paul,

              Generally, the .idx is used to find a specific message within the SMAT file since the .msg is just one long file that is not delimited between messages.  The .idx file has the offset of where each message starts and its length (as well as all the other metadata).  So, I think the approach would be that you traverse through the .msg file using the .idx file as your guide to pull each message, then interrogate each message for your criteria. At that point, you are already on the specific entry within the .idx file and can simply use the metadata.

              Hope that makes sense.

              Jim Cobane

              Henry Ford Health

            • #83977
              Paul Johnston
              Participant

                Hi Jim ,

                Yes , it does make sense . I will give it a try .

                Much appreciated.

                Thank you .

              • #83978
                Mark Thompson
                Participant

                  Want a great code example to start from?  See Charlie’s hcismat script in your $HCIROOT/contrib directory.

                  - Mark Thompson
                  HealthPartners

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.