{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/RhodriUKCorePatient",
  "name": "RhodriUKCorePatient",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "constraint": [
          {
            "key": "123-1",
            "severity": "error",
            "human": "Address Validation",
            "xpath": "Patient.address.where(use = 'temp').period.exists()"
          }
        ]
      },
      {
        "id": "Patient.address.use",
        "path": "Patient.address.use",
        "condition": [
          "123-1"
        ]
      },
      {
        "id": "Patient.address.period",
        "path": "Patient.address.period",
        "condition": [
          "123-1"
        ]
      }
    ]
  }
}