Overview
RF2-D2 is a build and packaging tool for SNOMED CT RF2 releases. With RF2-D2, you use a YAML file to configure your RF2 release bundle's directory structure, file naming and custom file formats. Then, with a single command, you verify, create and transform release files from your configuration. Here is a complete list of features RF2-D2 provides:
Validation and verification (rf2 check)
Verify existing RF2 Release file names and structure
Validate SNOMED CT content using a number of validation rules (WIP)
Packaging (rf2 create)
Package a single RF2 Release from one or more RF2 content, documentation and resource files
Configure and customize the name of the RF2 Release and RF2 files
Configure release structure and add additional content like custom files, documentation and resources
Transformation (rf2 transform)
Filter out certain parts from existing RF2 files (for example exclude all content from a module, etc.)
Replace values in RF2 files using conditions, simple statements and even external scripts
Diffing (rf2 diff)
Diff RF2 text files and releases (WIP)
Using RF2-D2 is usually a three step process:
Define your RF2 Release format in an
rf2-spec.yml
, so it can be reused and reproduced anywhereSpecify and copy the necessary RF2 source files to the directory where the
rf2-spec.yml
is definedRun the desired command
An rf2-spec.yml
file looks like this (see full file here):
For more information about the Specification file, see the rf2-spec.yml
file reference.
In the next section we will take a look at the available commands you can execute with RF2-D2.
Last updated