{
  "resourceType": "StructureDefinition",
  "id": "avail-bundle",
  "url": "http://fhir.org/guides/argonaut-scheduling/StructureDefinition/avail-bundle",
  "version": "0.0.0",
  "name": "Argonaut Appointment Bundle Profile",
  "status": "draft",
  "date": "2017-11-13",
  "publisher": "Argonaut Project",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://argonautwiki.hl7.org"
        }
      ]
    }
  ],
  "description": "This is the output Appointment Bundle profile which is returned as a result of the `$find` operation.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "definition": "This is the output Appointment Bundle profile which is returned as a result of the `find` operation.",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "searchset",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "*",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:apptslice",
        "path": "Bundle.entry",
        "sliceName": "appt-slice",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:apptslice.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Appointment",
            "profile": [
              "http://fhir.org/guides/argonaut-scheduling/StructureDefinition/argo-appt"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:apptslice.search",
        "path": "Bundle.entry.search",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:apptslice.search.mode",
        "path": "Bundle.entry.search.mode",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "match",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:oo-slice",
        "path": "Bundle.entry",
        "sliceName": "oo-slice",
        "max": "1",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:ooslice.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "OperationOutcome"
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:ooslice.search",
        "path": "Bundle.entry.search",
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Bundle.entry:ooslice.search.mode",
        "path": "Bundle.entry.search.mode",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "outcome",
        "mustSupport": true,
        "isModifier": false
      }
    ]
  }
}