<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_Microbiology" />
  <version value="1.0.0" />
  <name value="JPCoreObservationMicrobiologyProfile" />
  <title value="JP Core Observation Microbiology Profile" />
  <status value="draft" />
  <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://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;オーダ情報（ServiceRequestリソース）" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
      </type>
    </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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;日本では適切なコード体系が存在しないため、独自のバリューセットを定義する&lt;br&gt;JP Coreとしては本コード体系を必須とし、他のローカルコード等を使用する場合はCoding要素の2つ目以降に設定する" />
      <min value="1" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="http://jpfhir.jp/fhir/Common/ValueSet/microbiology-category" />
      </binding>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;[Slicing](http://hl7.org/fhir/profiling.html#slicing)を使用して複数のコード体系に対応&lt;br&gt;基本方針としてカテゴリに応じた標準コードの使用を想定しているが、ローカルコードを使用してもよい" />
    </element>
    <element id="Observation.code:infectious-agent">
      <path value="Observation.code" />
      <sliceName value="infectious-agent" />
      <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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;同定菌名を表現する場合に使用する&lt;br&gt;NeXEHRSで使用を定める標準コードに準じて、JANIS菌名コードを採用する" />
      <binding>
        <strength value="required" />
        <valueSet value="http://jpfhir.jp/fhir/Common/ValueSet/microbiology-infectious-agent" />
      </binding>
    </element>
    <element id="Observation.code:antimicrobial-drug">
      <path value="Observation.code" />
      <sliceName value="antimicrobial-drug" />
      <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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;抗菌薬コードを表現する場合に使用する&lt;br&gt;NeXEHRSで使用を定める標準コードに準じて、JANIS抗菌薬コードを採用する" />
      <binding>
        <strength value="required" />
        <valueSet value="http://jpfhir.jp/fhir/Common/ValueSet/microbiology-antimicrobial-drug" />
      </binding>
    </element>
    <element id="Observation.code:JLAC10">
      <path value="Observation.code" />
      <sliceName value="JLAC10" />
      <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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;塗抹結果、培養・同定結果を表現する場合に使用する&lt;br&gt;JLAC10コードを採用する" />
      <binding>
        <strength value="required" />
        <valueSet value="http://jpfhir.jp/fhir/Common/ValueSet/labResult-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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;患者（Patientリソース）" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/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).&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;診察（Encounterリソース）" />
      <min value="1" />
    </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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;検体採取日" />
      <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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;valueQuantity：同定検査の菌量（定量）、薬剤感受性結果（MIC値）を表現する場合に使用する想定&lt;br&gt;valueCodeableConcept：同定検査の菌種を表現する場合に使用する想定&lt;br&gt;valueString：塗抹結果、培養検査の週数・菌量を表現する場合に使用する想定" />
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <comment value="Historically used for laboratory results (known as 'abnormal flag' ),  its use extends to other use cases where coded interpretations  are relevant.  Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;薬剤感受性結果（判定）を表現する場合に使用する想定" />
    </element>
    <element id="Observation.interpretation.coding.system">
      <path value="Observation.interpretation.coding.system" />
      <comment value="【JP仕様】&lt;br&gt;[FHIR仕様](http://hl7.org/fhir/v3/ObservationInterpretation/cs.html)で定義されているコード体系を採用" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" />
    </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.&lt;br&gt;&lt;br&gt;【JP仕様】&lt;br&gt;本リソースの子となるObservationリソース" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://jpfhir.jp/fhir/core/StructureDefinition/JP_Observation_Microbiology" />
      </type>
    </element>
  </differential>
</StructureDefinition>