How do I create a CCD from flatfile in Cloverleaf?

Clovertech Forums Read Only Archives Cloverleaf Tcl Library How do I create a CCD from flatfile in Cloverleaf?

  • Creator
    Topic
  • #55240
    Devika Agarwal
    Participant

      I am working on creating a CCD from a flat-file that looks like this:

      root=2.16.840.1.113883.3.5722.3.1.1

      extension=12345665756

      title=Continuity of Care Document

      streetAddressLine=112 Test Way

      …It has all the fields in the CCD. I have to read from these fields and write it to the specific fields in CCD. What do you think would be the best way to do this in Cloverleaf? tclproc? xlate? or something else.

      It would be great if you can provide some examples from any work you’ve previously done on this. Thanks for reading!

    Viewing 2 reply threads
    • Author
      Replies
      • #84671
        Jim Kosloskey
        Participant

          I would use an Xlate.

          Sadly I do not have any readily available examples but it really is not too difficult assuming you understand Xlate.

          Assuming the target system is using the standard CCD Schema you should find that already compiled and available within Cloverleaf (depending on your release of Cloverleaf).

          So you simply define the Flat file in a FRL definition and then use that for the inbound layout in your Xlate and the CCD schema for the outbound. Do the appropriate COPY and other Xlate Actions. Depending on the content of the source, you may need a little Tcl invoked inside the Xlate for specific fields of data – no different than an HL/7 Xlate.

          I might suggest you also have a schema tool handy (but as I recall it is not necessary) to assist in determining where specific data should go. As I recall the CCD for certain elements of data may take a little study especially where repetition and nesting are concerned.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #84672
          Peter Heggie
          Participant

            All of the CCDAs I have seen have embedded HTML contained in the XML. Will you be placing HTML tags in the CCDA xml?

            Peter Heggie

          • #84673
            Devika Agarwal
            Participant

              Hi Peter,

              No. I will not be placing the html tags.

          Viewing 2 reply threads
          • The forum ‘Tcl Library’ is closed to new topics and replies.