Skip to content

HML MIRING Validation

Bob Milius edited this page Oct 27, 2016 · 11 revisions

MIRING/HML Validation

  • MIRING is a set of guiding principles

  • HML 1.0 is a technical specification that allows information conforming to MIRING principles to be exchanged

    • But HML doesn’t have to be MIRING compliant
    • You can perfectly valid HML, yet doesn’t contain much information.
  • Here's an example of a perfectly valid HML 1.0.1 document, yet doesn't contain any useful information. It will pass XML Schema validation for HML, but is not MIRING compliant.

    <?xml version="1.0" ?>
    <hml xmlns="http://schemas.nmdp.org/spec/hml/1.0.1"
        version="1.0.1" >
        <sample id="1">
            <typing gene-family="HLA" date="2016-07-01">
                <typing-method/>
            </typing>
        </sample>
    </hml>
  • We have developed a MIRING/HML validation service. It is found here:

  • The MIRING HML Validator is a REST service, available to the public, hosted at miring.b12x.org/validator/ValidateMiring/

    -- You can use this service programmatically using a POST request, with a single form parameter, "xml", containing the HML text.

    --Try this example using cURL:

$ curl -X POST --data-urlencode 'xml[]=<hml>...</hml>' http://miring.b12x.org/validator/ValidateMiring/

Validator source is on GITHUB

  • More information including how to read a validation result and a description of current validation rules can be found here: -- miring.b12x.org/MoreInfo.html

DaSH

Clone this wiki locally