<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="svccore-documentreference" />
  <url value="http://phis.co.kr/fhir/StructureDefinition/StructureDefinition-svccore-documentreference" />
  <version value="0.0.1" />
  <name value="SvcCore_DocumentReference" />
  <title value="Service Core DocumentReference Profile" />
  <status value="active" />
  <date value="2023-10-30T01:53:15.6881432+00:00" />
  <description value="2023. 10. DocumentReference의 대한 최소규격의 대하여 정의" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DocumentReference" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
  <derivation value="constraint" />
  <differential>
    <element id="DocumentReference.identifier">
      <path value="DocumentReference.identifier" />
      <min value="1" />
    </element>
    <element id="DocumentReference.identifier.system">
      <path value="DocumentReference.identifier.system" />
      <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique.&#xD;&#xA;&#xD;&#xA;Dtx 활용 시 https://connectdtx.net/phicode 를 고정값으로 활용." />
      <min value="1" />
      <example>
        <label value="phi-code" />
        <valueUri value="https://connectdtx.net/phicode" />
      </example>
    </element>
    <element id="DocumentReference.identifier.value">
      <path value="DocumentReference.identifier.value" />
      <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
      <min value="1" />
    </element>
    <element id="DocumentReference.type">
      <path value="DocumentReference.type" />
      <min value="1" />
    </element>
    <element id="DocumentReference.type.coding">
      <path value="DocumentReference.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DocumentReference.subject">
      <path value="DocumentReference.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.hl7korea.or.kr/fhir/krcore/StructureDefinition/krcore-patient" />
      </type>
    </element>
    <element id="DocumentReference.author">
      <path value="DocumentReference.author" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://phis.co.kr/fhir/StructureDefinition/StructureDefinition-svccore-device" />
      </type>
    </element>
    <element id="DocumentReference.context">
      <path value="DocumentReference.context" />
      <min value="1" />
    </element>
    <element id="DocumentReference.context.period">
      <path value="DocumentReference.context.period" />
      <min value="1" />
    </element>
    <element id="DocumentReference.context.period.start">
      <path value="DocumentReference.context.period.start" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>