{
  "resourceType": "StructureDefinition",
  "id": "t17-bundle-search-pat",
  "url": "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-search-pat",
  "name": "T17BundleSearchPatient",
  "title": "T17 Bundle Search Patient",
  "status": "draft",
  "description": "תשובת הקופה המוחזרת לביה\"ח עם הפרטים והמזהה הלוגי של המטופל בקופה",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "patternCode": "searchset"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "max": "1",
        "constraint": [
          {
            "key": "bundle-https",
            "severity": "error",
            "human": "Must start with either 'http://' or 'https://'",
            "expression": "fullUrl.startsWith('http://') or fullUrl.startsWith('https://')",
            "source": "http://ig.fhir-il-community.org/T17/StructureDefinition/t17-bundle-search-pat"
          }
        ]
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Patient",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry.search",
        "path": "Bundle.entry.search",
        "min": 1
      },
      {
        "id": "Bundle.entry.search.mode",
        "path": "Bundle.entry.search.mode",
        "min": 1,
        "fixedCode": "match"
      }
    ]
  }
}