INTEROPen CareConnect Base STU3 Implementation Guide
3.0.0 - CI Build

INTEROPen CareConnect Base STU3 Implementation Guide - Local Development build (v3.0.0). See the Directory of published versions

Testing/Validation

This is a UK supplement to HL7 FHIR Validating Resources

Using the FHIR Validator

Using the FHIR Validator.

To download the validator: https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.validator.jar

To validate against CareConnect resources you need to use this ImplementationGuide. This guide contains technical corrections to conformance resources held on the HL7 UK Care Connect INTEROPen - Reference Server

If you wish to use a local copy of this IG’s conformance resources they are available on HL7 UK GitHib. They are also available in a zip package validator.pack

Usage

To use this IG with the FHIR Validator you need to specify https://interopen.github.io/careconnect-base-stu3 in the -ig parameter.

java -jar org.hl7.fhir.validator.jar patient.xml -version 3.0 -ig https://interopen.github.io/careconnect-base-stu3/

Terminology Support

By default, the terminology server used by the FHIR Validator is tx.fhir.org, which supports most terminologies.

The FHIR Validator does not currently work 100% with the Beta Version - NHS Digital Ontology Server. Example

java -jar org.hl7.fhir.validator.jar c:\temp\patient.xml -version 3.0 -ig https://interopen.github.io/careconnect-base-stu3/ -tx https://ontoserver.dataproducts.nhs.uk/fhir/

Asking a FHIR Server

The operation validate is supported by a number of servers. These include:

Both servers will validate against Care Connect Profiles, CodeSystems and ValueSets. The AireLogic server uses Beta Version - NHS Digital Ontology Server for terminology verification.
The code for both FHIR servers can be found on the Care Connect Reference Implementation GitHub Repository

Example

Validate a (GP Connect) Patient against the Care Connect patient profile using POST directly.

Request:

POST https://fhir.airelogic.com/ccri-fhir/STU3/$validate?profile=https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1
Content-Type application/fhir+json
[other headers]

Body:

{
  "resourceType": "Patient",
  "id": "2",
  "meta": {
    "versionId": "1469448000000",
    "profile": [
      "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
    ]
  },
  "extension": [
    {
      "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-RegistrationDetails-1",
      "extension": [
        {
          "url": "preferredBranchSurgery",
          "valueReference": {
            "reference": "Location/785b4ff5-aced-4bdf-b7ed-34f92131ce97"
          }
        }
      ]
    },
    {
      "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-NHSCommunication-1",
      "extension": [
        {
          "url": "language",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-HumanLanguage-1",
                "code": "bn",
                "display": "Bengali"
              }
            ]
          }
        },
        {
          "url": "interpreterRequired",
          "valueBoolean": false
        }
      ]
    }
  ],
  "identifier": [
    {
      "extension": [
        {
          "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-NHSNumberVerificationStatus-1",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
                "code": "01",
                "display": "Number present and verified"
              }
            ]
          }
        }
      ],
      "system": "https://fhir.nhs.uk/Id/nhs-number",
      "value": "9476719931"
    }
  ],
  "active": true,
  "name": [
    {
      "use": "official",
      "text": "JACKSON Jane (Miss)",
      "family": "Jackson",
      "given": [
        "Jane"
      ],
      "prefix": [
        "Miss"
      ]
    }
  ],
  "telecom": [
    {
      "system": "phone",
      "value": "01454587554",
      "use": "home"
    }
  ],
  "gender": "female",
  "birthDate": "1952-05-31",
  "address": [
    {
      "use": "home",
      "type": "physical",
      "line": [
          "Trevelyan Square",
          "Boar Ln"
      ],
      "city": "Leeds",
      "district": "West Yorkshire",
      "postalCode": "LS1 6AE"
    }
  ],
  "managingOrganization": {
    "reference": "Organization/14"
  }
}

Online Validation

Alternatively you may validate resources using an online validation application. Validators include: