<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="repository-type" />
  <meta>
    <lastUpdated value="2017-04-19T07:44:43.294+10:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>repositoryType</h2>
      <div>
        <p>Type for access of external URI</p>
      </div>
      <p>This code system http://hl7.org/fhir/repository-type defines the following codes:</p>
      <table class="codes">
        <tr>
          <td>
            <b>Code</b>
          </td>
          <td>
            <b>Display</b>
          </td>
          <td>
            <b>Definition</b>
          </td>
        </tr>
        <tr>
          <td>directlink
                  <a name="repository-type-directlink"></a></td>
          <td>Click and see</td>
          <td>When URL is clicked, the resource can be seen directly (by webpage or by download link format)</td>
        </tr>
        <tr>
          <td>openapi
                  <a name="repository-type-openapi"></a></td>
          <td>The URL is the RESTful or other kind of API that can access to the result.</td>
          <td>When the API method (e.g. [base_url]/[parameter]) related with the URL of the website is executed, the resource can be seen directly (usually in JSON or XML format)</td>
        </tr>
        <tr>
          <td>login
                  <a name="repository-type-login"></a></td>
          <td>Result cannot be access unless an account is logged in</td>
          <td>When logged into the website, the resource can be seen.</td>
        </tr>
        <tr>
          <td>oauth
                  <a name="repository-type-oauth"></a></td>
          <td>Result need to be fetched with API and need LOGIN( or cookies are required when visiting the link of resource)</td>
          <td>When logged in and  follow the API in the website related with URL, the resource can be seen.</td>
        </tr>
        <tr>
          <td>other
                  <a name="repository-type-other"></a></td>
          <td>Some other complicated or particular way to get resource from URL.</td>
          <td>Some other complicated or particular way to get resource from URL.</td>
        </tr>
      </table>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status">
    <valueString value="Informative" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="cg" />
  </extension>
  <url value="http://hl7.org/fhir/repository-type" />
  <identifier>
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.840.1.113883.4.642.1.226" />
  </identifier>
  <version value="3.0.1" />
  <name value="repositoryType" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2017-04-19T07:44:43+10:00" />
  <publisher value="HL7 (FHIR Project)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="fhir@lists.hl7.org" />
    </telecom>
  </contact>
  <description value="Type for access of external URI" />
  <caseSensitive value="true" />
  <valueSet value="http://hl7.org/fhir/ValueSet/repository-type" />
  <content value="complete" />
  <concept>
    <code value="directlink" />
    <display value="Click and see" />
    <definition value="When URL is clicked, the resource can be seen directly (by webpage or by download link format)" />
  </concept>
  <concept>
    <code value="openapi" />
    <display value="The URL is the RESTful or other kind of API that can access to the result." />
    <definition value="When the API method (e.g. [base_url]/[parameter]) related with the URL of the website is executed, the resource can be seen directly (usually in JSON or XML format)" />
  </concept>
  <concept>
    <code value="login" />
    <display value="Result cannot be access unless an account is logged in" />
    <definition value="When logged into the website, the resource can be seen." />
  </concept>
  <concept>
    <code value="oauth" />
    <display value="Result need to be fetched with API and need LOGIN( or cookies are required when visiting the link of resource)" />
    <definition value="When logged in and  follow the API in the website related with URL, the resource can be seen." />
  </concept>
  <concept>
    <code value="other" />
    <display value="Some other complicated or particular way to get resource from URL." />
    <definition value="Some other complicated or particular way to get resource from URL." />
  </concept>
</CodeSystem>