<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="Healthcare-Directory" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2017-05-02T00:00:00Z" />
  </meta>
  <url value="http://epic.com/fhir/OperationDefinition/directory" />
  <name value="directory" />
  <status value="draft" />
  <kind value="operation" />
  <publisher value="Epic" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="smater@epic.com" />
    </telecom>
  </contact>
  <date value="2017-05-02T00:00:00Z" />
  <description value="Returns a healthcare directory for a given healthcare organization.  This operation accepts a lastDownloaded field.  Given this date, it returns an organization's entire shareable directory.  This can include Practitioners, PractitionerRoles, Locations, Organizations, HealthCareServices, and Endpoints.  The server can return these resources in any order, and the client must be able to handle that.  References in the bundle must be relative, and the bundle may include duplicative data.   Previous work in this area has been done by the Argonauts, and can be found at: http://build.fhir.org/ig/argonautproject/provider-directory/" />
  <code value="directory" />
  <system value="true" />
  <type value="false" />
  <instance value="false" />
  <parameter>
    <name value="lastDownloaded" />
    <use value="in" />
    <min value="0" />
    <max value="1" />
    <documentation value="The last time the Healthcare Directory was queried.  Can be used for versioning.  If nothing has changed in the directory since it was last downloaded, no data will be returned to the client.  If data has changed, the full directory will be returned to the client." />
    <type value="dateTime" />
  </parameter>
  <parameter>
    <name value="directory" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="A collections Bundle of Practitioner, PractitionerRole, Location, Organization, HealthCareService, and Endpoint resources.  These are the contents of an organization's sharable directory.  If errors occur during the download, an OperationOutcome will be returned in the bundle." />
    <type value="Resource" />
  </parameter>
  <parameter>
    <name value="next" />
    <use value="out" />
    <min value="0" />
    <max value="1" />
    <documentation value="A pointer to the next page." />
    <type value="string" />
  </parameter>
</OperationDefinition>