{
  "resourceType": "StructureDefinition",
  "id": "1",
  "meta": {
    "lastUpdated": "2019-02-26T09:30:10.6851852+00:00"
  },
  "url": "http://spms.min-saude/fhir/STU3/StructureDefinition/PatientSearch",
  "name": "PatientSearch",
  "status": "draft",
  "fhirVersion": "3.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",
        "short": "message",
        "fixedCode": "message"
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "max": "0"
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resource.resourceType"
            }
          ],
          "rules": "open"
        },
        "min": 4,
        "max": "4"
      },
      {
        "id": "Bundle.entry.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "definition": "The Resources for the entry",
        "max": "0",
        "type": [
          {
            "code": "MessageHeader"
          }
        ]
      },
      {
        "id": "Bundle.entry.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader",
        "path": "Bundle.entry",
        "sliceName": "MessageHeader",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:MessageHeader.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:MessageHeader.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MessageHeader",
            "profile": "http://spms.min-saude/fhir/STU3/StructureDefinition/MessageHeader"
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Parameters",
        "path": "Bundle.entry",
        "sliceName": "Parameters",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Parameters.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Parameters.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Parameters",
            "profile": "http://spms.min-saude/fhir/STU3/StructureDefinition/Parameters-request"
          }
        ]
      },
      {
        "id": "Bundle.entry:Parameters.resource.parameter:sliceParameter_XDSDocumentEntryDocumentPatientID",
        "path": "Bundle.entry.resource.parameter",
        "sliceName": "sliceParameter_XDSDocumentEntryDocumentPatientID"
      },
      {
        "id": "Bundle.entry:Parameters.resource.parameter:sliceParameter_XDSDocumentEntryDocumentPatientID.part.value[x]:valueIdentifier",
        "path": "Bundle.entry.resource.parameter.part.value[x]",
        "sliceName": "valueIdentifier"
      },
      {
        "id": "Bundle.entry:Parameters.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Parameters.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Parameters.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationBegin",
        "path": "Bundle.entry",
        "sliceName": "OrganizationBegin",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:OrganizationBegin.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationBegin.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Organization",
            "profile": "http://spms.min-saude/fhir/STU3/StructureDefinition/Organization"
          }
        ]
      },
      {
        "id": "Bundle.entry:OrganizationBegin.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationBegin.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationBegin.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationEnd",
        "path": "Bundle.entry",
        "sliceName": "OrganizationEnd",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:OrganizationEnd.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationEnd.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization",
            "profile": "http://spms.min-saude/fhir/STU3/StructureDefinition/Organization"
          }
        ]
      },
      {
        "id": "Bundle.entry:OrganizationEnd.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationEnd.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:OrganizationEnd.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "max": "0"
      }
    ]
  }
}