<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_SocialHistory" />
  <version value="1.0.0" />
  <name value="JP_Observation_SocialHistory" />
  <title value="JP_Observation_SocialHistory" />
  <status value="active" />
  <publisher value="FHIR® Japanese implementation research working group in Japan Association of Medical Informatics (JAMI)" />
  <description value="このプロファイルはObservationリソースに対して、生活背景のデータを送受信するための制約と拡張を定めたものである。" />
  <copyright value="FHIR® Japanese implementation research working group in Japan Association of Medical Informatics (JAMI)" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <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="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.org/attributebinding" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_Common" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="生活背景の情報" />
      <definition value="生活背景の情報" />
      <comment value="生活背景に関するObservation（収集したり観察した事実など）の制約プロフィール" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <comment value="In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once.  The level of granularity is defined by the category concepts in the value set.&#xD;&#xA;&#xD;&#xA;【JP仕様】&lt;br&gt;&#xD;&#xA;基底仕様のカテゴリ「social-history」固定とする" />
      <min value="1" />
      <max value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="social-history" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <comment value="*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.&#xD;&#xA;&#xD;&#xA;【JP仕様】&lt;br&gt;&#xD;&#xA;項目についてはMEDISのJ-MIXの「生活背景情報」を基にバリューセットを定義する&lt;br&gt;&#xD;&#xA;具体的なコードについてはSWG6と連携して決定する必要がある（TBD）" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://jpfhir.jp/fhir/Common/ValueSet/socialHistory-code" />
      </binding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <comment value="One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.&#xD;&#xA;&#xD;&#xA;【JP仕様】&lt;br&gt;&#xD;&#xA;患者" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <comment value="At least a date should be present unless this observation is a historical report.  For recording imprecise or &quot;fuzzy&quot; times (For example, a blood glucose measurement taken &quot;after breakfast&quot;) use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.&#xD;&#xA;&#xD;&#xA;【JP仕様】&lt;br&gt;&#xD;&#xA;effectiveDateTime：医療者が確認した日時&lt;br&gt;&#xD;&#xA;effectivePeriod：医療者が確認した期間" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <comment value="An observation may have; 1)  a single value here, 2)  both a value and a set of related or component values,  or 3)  only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code.  A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value.  For additional guidance, see the [Notes section](observation.html#notes) below.&#xD;&#xA;&#xD;&#xA;【JP仕様】&lt;br&gt;&#xD;&#xA;文字列、コード、数値に限定する" />
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <comment value="All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value.  The most common reference will be another Observation.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.&#xD;&#xA;&#xD;&#xA;【JP仕様】&lt;br&gt;&#xD;&#xA;導出元の参照リソースにJP_Observation_SocialHistoryを追加" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MolecularSequence" />
        <targetProfile value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_SocialHistory" />
      </type>
    </element>
  </differential>
</StructureDefinition>