<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ContactPoint" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2019-12-11T06:26:55.852+00:00" />
  </meta>
  <url value="http://StructureDefinition.hl7fhir.cn/ContactPoint" />
  <name value="ContactPoint" />
  <title value="联系方式" />
  <status value="draft" />
  <date value="2019-12-11T06:26:55.3669966Z" />
  <publisher value="hl7fhir.cn" />
  <description value="联系方式，包括电话、传真、邮件等" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="servd" />
    <uri value="http://www.omg.org/spec/ServD/1.0/" />
    <name value="ServD" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="ContactPoint" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
  <derivation value="constraint" />
  <snapshot>
    <element id="ContactPoint">
      <path value="ContactPoint" />
      <short value="联系方式" />
      <definition value="联系方式，包括电话、传真、邮件等" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="ContactPoint" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cpt-2" />
        <severity value="error" />
        <human value="A system is required if a value is provided." />
        <expression value="value.empty() or system.exists()" />
        <xpath value="not(exists(f:value)) or exists(f:system)" />
        <source value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="TEL" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="ContactPoint" />
      </mapping>
    </element>
    <element id="ContactPoint.id">
      <path value="ContactPoint.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ContactPoint.extension">
      <path value="ContactPoint.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ContactPoint.system">
      <path value="ContactPoint.system" />
      <short value="所属体系（种类）" />
      <definition value="联系方式所属体系（种类），如：电话、传真、邮件、微信、QQ等" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ContactPoint.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <meaningWhenMissing value="若不指定联系方式的种类，默认为电话" />
      <condition value="ele-1" />
      <condition value="cpt-2" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContactPointSystem" />
        </extension>
        <strength value="required" />
        <description value="联系方式种类" />
        <valueSet value="http://ValueSet.hl7fhir.cn/contact-point-system" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./scheme" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./ContactPointType" />
      </mapping>
    </element>
    <element id="ContactPoint.value">
      <path value="ContactPoint.value" />
      <short value="具体方式" />
      <definition value="具体的联系方式，如手机号、传真号、邮件地址等" />
      <comment value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value." />
      <requirements value="Need to support legacy numbers that are not in a tightly controlled format." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ContactPoint.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN.1 (or XTN.12)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./url" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Value" />
      </mapping>
    </element>
    <element id="ContactPoint.use">
      <path value="ContactPoint.use" />
      <short value="用途" />
      <definition value="用途，如私人用、家用、公司、曾用等" />
      <comment value="不填此项时应默认为私用" />
      <requirements value="通过对用途的区分可在使用时选择适当的联系方式" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ContactPoint.use" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="改变此元素的值将引起整个号码意义的变化，如“公司”和“私人”的意义是完全不同的" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ContactPointUse" />
        </extension>
        <strength value="required" />
        <description value="号码用途" />
        <valueSet value="http://ValueSet.hl7fhir.cn/contact-point-use" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN.2 - but often indicated by field" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./use)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./ContactPointPurpose" />
      </mapping>
    </element>
    <element id="ContactPoint.rank">
      <path value="ContactPoint.rank" />
      <short value="使用频率" />
      <definition value="使用频率的权重（0到1之间，1的权重最高）" />
      <comment value="注意：联系方式录入的先后顺序和权重无关" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ContactPoint.rank" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="positiveInt" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="ContactPoint.period">
      <path value="ContactPoint.period" />
      <short value="时段范围" />
      <definition value="由开始和结束时间以及可选时间定义的时间段范围。" />
      <comment value="注意是时间段Period数据类型，而非持续时间Duration数据类型。结束时间应总是晚于开始时间。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="ContactPoint.period" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Period" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Period" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="per-1" />
        <severity value="error" />
        <human value="If present, start SHALL have a lower value than end" />
        <expression value="start.hasValue().not() or end.hasValue().not() or (start &lt;= end)" />
        <xpath value="not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) &lt;= xs:dateTime(f:end/@value))" />
        <source value="http://hl7.org/fhir/StructureDefinition/Period" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="DR" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="IVL&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;] or URG&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./usablePeriod[type=&quot;IVL&lt;TS&gt;&quot;]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./StartDate and ./EndDate" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="ContactPoint">
      <path value="ContactPoint" />
      <short value="联系方式" />
      <definition value="联系方式，包括电话、传真、邮件等" />
    </element>
    <element id="ContactPoint.system">
      <path value="ContactPoint.system" />
      <short value="所属体系（种类）" />
      <definition value="联系方式所属体系（种类），如：电话、传真、邮件、微信、QQ等" />
      <meaningWhenMissing value="若不指定联系方式的种类，默认为电话" />
      <binding>
        <strength value="required" />
        <description value="联系方式种类" />
        <valueSet value="http://ValueSet.hl7fhir.cn/contact-point-system" />
      </binding>
    </element>
    <element id="ContactPoint.value">
      <path value="ContactPoint.value" />
      <short value="具体方式" />
      <definition value="具体的联系方式，如手机号、传真号、邮件地址等" />
    </element>
    <element id="ContactPoint.use">
      <path value="ContactPoint.use" />
      <short value="用途" />
      <definition value="用途，如私人用、家用、公司、曾用等" />
      <comment value="不填此项时应默认为私用" />
      <requirements value="通过对用途的区分可在使用时选择适当的联系方式" />
      <isModifierReason value="改变此元素的值将引起整个号码意义的变化，如“公司”和“私人”的意义是完全不同的" />
      <binding>
        <strength value="required" />
        <description value="号码用途" />
        <valueSet value="http://ValueSet.hl7fhir.cn/contact-point-use" />
      </binding>
    </element>
    <element id="ContactPoint.rank">
      <path value="ContactPoint.rank" />
      <short value="使用频率" />
      <definition value="使用频率的权重（0到1之间，1的权重最高）" />
      <comment value="注意：联系方式录入的先后顺序和权重无关" />
    </element>
    <element id="ContactPoint.period">
      <path value="ContactPoint.period" />
      <type>
        <code value="Period" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Period" />
      </type>
    </element>
  </differential>
</StructureDefinition>