<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="jp-observation-physicalexam" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Diagnostics" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <url value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_PhysicalExam" />
  <version value="1.1.1" />
  <name value="JP_Observation_PhysicalExam" />
  <title value="JP Core Observation PhysicalExam Profile" />
  <status value="active" />
  <date value="2022-10-24" />
  <description value="このプロファイルはObservationリソースに対して、身体所見のデータを送受信するための制約と拡張を定めたものである。" />
  <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="身体所見に関する測定や簡単な観察事実（assertion）" />
      <definition value="身体所見に関する測定や簡単な観察事実" />
      <comment value="身体所見に関するObservation（検査測定や観察事実）の制約プロフィール" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <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 Core仕様】基底仕様のカテゴリ「exam」固定とする" />
      <min value="1" />
    </element>
    <element id="Observation.category:exam">
      <path value="Observation.category" />
      <sliceName value="exam" />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="exam" />
        </coding>
      </patternCodeableConcept>
    </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 Core仕様】所見の有無を表すコード（固定値）" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://jpfhir.jp/fhir/core/ValueSet/JP_PhysicalExamCode_VS" />
      </binding>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.code.coding:physicalExamCode">
      <path value="Observation.code.coding" />
      <sliceName value="physicalExamCode" />
      <short value="身体所見項目コード。本ユースケースにおける項目コード推奨値をスライスにて示している。【詳細参照】" />
      <definition value="身体所見項目コード。本ユースケースにおける項目コード推奨値をスライスにて示している。" />
      <comment value="推奨項目コードは必須ではない、派生先によるコード体系を作成し割り振ることを否定しない" />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://jpfhir.jp/fhir/core/CodeSystem/JP_PhysicalExamCode_CS" />
        <code value="physical-findings" />
        <display value="Physical Findings" />
      </patternCoding>
    </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 Core仕様】患者" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Patient" />
      </type>
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <comment value="This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).&#xD;&#xA;&#xD;&#xA;【JP Core仕様】診察" />
    </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 Core仕様】effectiveDateTime：医療者が確認した日時&#xD;&#xA;&#xD;&#xA;effectivePeriod：医療者が確認した期間" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Observation.valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <short value="所見の有無（Y or N）を指定する" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0136" />
      </binding>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <comment value="ICD-11" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://jpfhir.jp/fhir/core/ValueSet/JP_ObservationPhysicalExamBodySite_VS" />
      </binding>
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <comment value="MEDIS症状・所見マスターの「診察方法」" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://jpfhir.jp/fhir/core/ValueSet/JP_ObservationPhysicalExamMethod_VS" />
      </binding>
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <comment value="When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases.  For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.  Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html)  into a final score and represent the score as an Observation.&#xD;&#xA;&#xD;&#xA;【JP Core仕様】関連する参照リソースにJP_Observation_PhysicalExamを追加" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_Common" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MolecularSequence" />
        <targetProfile value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_PhysicalExam" />
      </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 Core仕様】導出元の参照リソースにJP_Observation_PhysicalExamを追加" />
      <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://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_Common" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MolecularSequence" />
        <targetProfile value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_PhysicalExam" />
      </type>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <short value="所見有り（valueCodeableConceptがY）の場合に、具体的な所見をコード、または文字列で記載する" />
      <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.&#xD;&#xA;&#xD;&#xA;【JP Core仕様】具体的な所見を記載する" />
    </element>
    <element id="Observation.component.code">
      <path value="Observation.component.code" />
      <comment value="*All* code-value and  component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.&#xD;&#xA;&#xD;&#xA;【JP Core仕様】具体的な所見を表すコード（固定値）" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://jpfhir.jp/fhir/core/ValueSet/JP_PhysicalExamCode_VS" />
      </binding>
    </element>
    <element id="Observation.component.code.coding">
      <path value="Observation.component.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component.code.coding:physicalExamCode">
      <path value="Observation.component.code.coding" />
      <sliceName value="physicalExamCode" />
      <short value="身体所見項目コード。本ユースケースにおける項目コード推奨値をスライスにて示している。【詳細参照】" />
      <definition value="身体所見項目コード。本ユースケースにおける項目コード推奨値をスライスにて示している。" />
      <comment value="推奨項目コードは必須ではない、派生先によるコード体系を作成し割り振ることを否定しない" />
      <min value="0" />
      <max value="1" />
      <patternCoding>
        <system value="http://jpfhir.jp/fhir/core/CodeSystem/JP_PhysicalExamCode_CS" />
        <code value="detailed-physical-findings" />
        <display value="Detailed Physical Findings" />
      </patternCoding>
    </element>
  </differential>
</StructureDefinition>