USING SCDDIFF.EXE
By Bonnie Fefferman
If you are a Cerner Analyst who works in a multiple domain environment, you know that it is not uncommon to
find that things don’t work the same between environments. Many times, the best explanation that you are given
is that some of your development work was “Lost in the Move”! I would like to show you a way to verify that the
content between domains matches.
You can use the SCDDiff.exe tool to help you ensure that all of the sentences, terms, paragraphs, etc. that
comprise your notes were accurately copied over during the export/import process. In addition, this tool can
help you identify differences between two environments when testing in the environments produce disparate
results.
Since this tool produces an XML file that allows you to compare patterns, you can easily see what has been
changed between environments or that they match completely.
Here is an example of using this tool:
- First you need to make sure you have ASN files of both patterns (EP’s) that you are viewing to compare
the differences.
- You can create ASN files by doing the ‘export’ portion of an export/import of a note
- This will create a DAT file and an ASN file. An ASN file is an expanded DAT file. It will be fairly
large in size.
- Once you have both ASN files of the patterns, make sure to place them in the same directory on the
backend.
- On the backend (AIX), navigate to folder where the patterns or the notes exist. Make sure this is where
the ASN files are stored.
- Type
o scddiff –h
- This will enter you into an interactive prompt session
scddiff -h
**** SCD Difference Tool ****
*** Log file for this session is:/cerner/d_h3stg/ccluserdir/scddiff-h_5152307.log.
**** Please select the diff type from the list below. *****
- Asn File To Asn File (specify different pattern ckis)
- Asn File To Asn File (specify same pattern cki)
- Asn File To DB
- Quit
> Your choice (1, 2, 3, and 4) is: 2
**** Enter the first asn file (CP) ****
**** Please select asn file format from the list below. *****
- Asn Text File
- Asn Binary File
- Quit
> Your choice (1, 2, and 3) is: 1
>Enter the asn file: scd_joint_chp.asn
*** Supply pattern cki, by default[ENTER], use the first pattern ***
> Enter cki_source: Client Specific
> Enter cki_identifer: EP (Name of the EP)
- It will then prompt you to enter the file name, CKI Source, and CKI Identifier of the second EP that
you want to compare it to.
- After you do that, it will ask for the filename of the XML file that it will create.
- It will place the XML file in the same directory that you ran scddiff from.
- After that, you can transfer that XML file to your PC (FTP)
- You can then just open the XML file by clicking on it
- It will open in Internet Explorer.
- If you want to view the interactive differences, or have it create a slightly easier to read HTML
file from the XML file, open SCDKE.exe from one of the domains that contains the EP that you ran in the
SCDDiff application.
- In SCDKE.exe
- Choose either Open->Pattern Difference report (to create an HTML file from the XML file and view the
text) or Interactive Pattern Differences which will outline all differences and what was changed with the
actual pattern open.