電子カルテ情報共有サービス2文書5情報+患者サマリー FHIR実装ガイド JP-CLINS(CLinical Information Sharing ImplementationGuide) v1.6.0
1.6.0 - release Japan

電子カルテ情報共有サービス2文書5情報+患者サマリー FHIR実装ガイド JP-CLINS(CLinical Information Sharing ImplementationGuide) v1.6.0 - Local Development build (v1.6.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: JP_Bundle_CLINS - Detailed Descriptions

Active as of 2024-09-14

Definitions for the JP-Bundle-CLINS resource profile.

Guidance on how to interpret the contents of this table can be found here

0. Bundle
Definition

電子カルテ情報共有サービスへの5情報送信用 Bundleリソース

Short電子カルテ情報共有サービスへの5情報送信用 Bundleリソース
Invariantsbundle-profile-is-JP-Bundle-CLINS: R0213:BundleはJP-Bundle-CLINSプロファイルに準拠していなければならない。 (meta.profile.where($this.indexOf('|')>0 and ($this.indexOf('|')>0 implies ($this.substring(0,$this.indexOf('|'))='http://jpfhir.jp/fhir/clins/StructureDefinition/JP_Bundle_CLINS'))).exists() or meta.profile.where($this='http://jpfhir.jp/fhir/clins/StructureDefinition/JP_Bundle_CLINS').exists())
bundle-meta-tag-resourceType-exists: R02141:Bundle.meta.tagに、収納するresourceTypeを記述しなければならない。 (meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').exists())
bundle-meta-tag-resourceType-valid: R02142:Bundle.meta.tagに記述されたresourceTypeは、'AllergyIntolerance', 'Observation', 'Condition'のいずれかであること。 (meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').where(code='AllergyIntolerance').count()=1 or meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').where(code='Observation').count()=1 or meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').where(code='Condition').count()=1)
mustHaveOneMoreResources-with-designatedResourceType: R02143:Bundle.meta.tagに記述されたresourceTypeで指定されたAllergyIntolerance, Condition, Observationのリソースが1つ以上含まれていなければならない。 ((entry.resource.ofType(Observation).exists() and meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').code='Observation') or (entry.resource.ofType(Condition).exists() and meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').code='Condition') or (entry.resource.ofType(AllergyIntolerance).exists() and meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS').code='AllergyIntolerance'))
valid-system-bundleIdenfifier: R02151:Bundle.identifier.sysyemは、http://jpfhir.jp/fhir/clins/bundle-identifier (identifier.where(system='http://jpfhir.jp/fhir/clins/bundle-identifier').exists())
valid-value-bundleIdenfifier: R2152:Bundle.identifier.value は、医療機関番号10桁^西暦4件^36文字以内の半角文字列(英字、数字、ハイフン記号のみ可)であること。'^[0-4][0-9][1-3][0-9]{7}[\^]20[2-3][0-9][\^][A-Za-z0-9\-]{1,36}$' ((identifier.where(system = 'http://jpfhir.jp/fhir/clins/bundle-identifier').count()=1 and identifier.where(system = 'http://jpfhir.jp/fhir/clins/bundle-identifier').value.matches('^[0-4][0-9][1-3][0-9]{7}[\\^]20[2-3][0-9][\\^][A-Za-z0-9\\-]{1,36}$')))
all-entries-needs-extension-of-institutionNumber: R9011:Bundleに含まれるPatient以外のリソースには、医療機関識別IDが必須である。 (entry.tail().resource.all(extension.where(url='http://jpfhir.jp/fhir/clins/Extension/StructureDefinition/JP_eCS_InstitutionNumber').exists()))
all-entries-needs-valid-institutionNumber: R9012:Bundleに含まれるPatient以外のリソースには、医療機関識別IDが記述され10桁数字であることが必須である。 (entry.tail().resource.all(extension.where(url='http://jpfhir.jp/fhir/clins/Extension/StructureDefinition/JP_eCS_InstitutionNumber').value.ofType(Identifier).value.matches('^[0-4][0-9][1-3][0-9]{7}$')))
condition-needs-contained-of-Encounter: R9013C:Bundleに含まれるすべてのConditionのリソースには、Contained JP_Encounterリソースが必須である。 (entry.select(resource as Condition).all(contained.meta.where(profile.exists() and ((profile.exists() implies profile='http://jpfhir.jp/fhir/core/StructureDefinition/JP_Encounter') or (profile.exists() implies profile='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Encounter_eCS'))).exists()))
condition-needs-extension-of-Department: R9014C:Bundleに含まれるすべてのConditionリソースには、診療科拡張が必須である。 (entry.select(resource as Condition).all(extension.where(url='http://jpfhir.jp/fhir/eCS/Extension/StructureDefinition/JP_eCS_Department').exists()))
condition-needs-onsetDateTime: R9013C:Bundleに含まれるすべてのConditionのリソースでは、onsetDateTime要素が必須である。 (entry.select(resource as Condition).all(onset.ofType(dateTime).exists()))
observation-needs-contained-of-Encounter: R9013O:Bundleに含まれるすべてのObservationのリソースには、Contained JP_Encounterリソースが必須である。 (entry.select(resource as Observation).all(contained.meta.where((profile='http://jpfhir.jp/fhir/core/StructureDefinition/JP_Encounter') or (profile='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Encounter_eCS')).exists()))
observation-needs-extension-of-Department: R9014O:Bundleに含まれるすべてのObservationリソースには、診療科拡張が必須である。 (entry.select(resource as Observation).all(extension.where(url='http://jpfhir.jp/fhir/eCS/Extension/StructureDefinition/JP_eCS_Department').exists()))
observation-needs-performer: R9017O:Bundleに含まれるすべてのObservationのリソースには、performer要素が必須である。 (entry.select(resource as Observation).all(performer.exists()))
observation-needs-contained-of-Practitioner: R9019O:Bundleに含まれるすべてのObservationのリソースには、Contained JP_Practitionerリソースが必須である。 (entry.select(resource as Observation).all(contained.meta.where((profile='http://jpfhir.jp/fhir/core/StructureDefinition/JP_Practitioner') or (profile='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Practitioner_eCS')).exists()))
observation-needs-encounter: R9016O:Bundleに含まれるすべてのObservationのリソースには、encounter要素が必須である。 (entry.select(resource as Observation).all(encounter.exists()))
observation-has-no-hasMember: R6081: hasMember要素は、電子カルテ情報共有サービス(5情報のひとつとして送信される場合)では使用できない (entry.select(resource as Observation).all(hasMember.exists().not()))
check-LTS-MemberOf-infectionLabo: R6031 Observation CLINS ではLTS長期保存フラグが指定感染症でのみ記述可能である。 (entry.select(resource as Observation).all((meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/JP_ehrshrs_indication').exists().not()) or ((meta.tag.where(system='http://jpfhir.jp/fhir/clins/CodeSystem/JP_ehrshrs_indication' and code='LTS').exists()) and (code.coding.where((memberOf('http://jpfhir.jp/fhir/clins/ValueSet/JLAC10/JP_CLINS_ObsLabResult_InfectionLabo_VS')) or (memberOf('http://jpfhir.jp/fhir/clins/ValueSet/JLAC11/JP_CLINS_ObsLabResult_InfectionLabo_VS'))).exists()))))
first-bundle-entry-is-Patient: R0211:最初のentryはPatientでなければならない。 (entry.first().resource.is(Patient))
patients-profile-is-JP-Patient-eCS: R0212:最初のentryであるPatientは、JP_Patient_eCSプロファイルに準拠していなければならない。 (entry.first().resource.meta.profile.where($this.indexOf('|')>0 and ($this.indexOf('|')>0 implies ($this.substring(0,$this.indexOf('|'))='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Patient_eCS'))).exists() or entry.first().resource.meta.profile.where($this='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Patient_eCS').exists())
validEntryProfile-AllergyIntolerance: Bundle-entry-AllergyIntolerance: Bundleのentryとして含まれるAllergyIntoleranceは、プロファイルJP_AllergyIntolerance_eCSのいずれかのバージョンに準拠していなければならない。 ((entry.resource.ofType(AllergyIntolerance).exists().not()) or ((entry.resource.ofType(AllergyIntolerance).meta.profile.where($this.indexOf('|')>0 and ($this.indexOf('|')>0 implies ($this.substring(0,$this.indexOf('|'))!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_AllergyIntolerance_eCS'))).exists()).not()) or ((entry.resource.ofType(AllergyIntolerance).meta.profile.where($this!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_AllergyIntolerance_eCS').exists()).not()))
validEntryProfile-Condition: Bundle-entry-Condition: Bundleのentryとして含まれるConditionは、プロファイルJP_Condition_eCSのいずれかのバージョンに準拠していなければならない。 ((entry.resource.ofType(Condition).exists().not()) or ((entry.resource.ofType(Condition).meta.profile.where($this.indexOf('|')>0 and ($this.indexOf('|')>0 implies ($this.substring(0,$this.indexOf('|'))!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Condition_eCS'))).exists()).not()) or ((entry.resource.ofType(Condition).meta.profile.where($this!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Condition_eCS').exists()).not()))
validEntryProfile-MedicationRequest: Bundle-entry-MedicationRequest: Bundleのentryとして含まれるMedicationRequestは、プロファイルJP_MedicationRequest_eCSのいずれかのバージョンに準拠していなければならない。 ((entry.resource.ofType(MedicationRequest).exists().not()) or ((entry.resource.ofType(MedicationRequest).meta.profile.where($this.indexOf('|')>0 and ($this.indexOf('|')>0 implies ($this.substring(0,$this.indexOf('|'))!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_MedicationRequest_eCS'))).exists()).not()) or ((entry.resource.ofType(MedicationRequest).meta.profile.where($this!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_MedicationRequest_eCS').exists()).not()))
validEntryProfile-ObservationLabResult: Bundle-entry-Observation: Bundleのentryとして含まれるObservationは、プロファイルJP_Observation_LabResult_eCSのいずれかのバージョンに準拠していなければならない。 ((entry.resource.ofType(Observation).exists().not()) or ((entry.resource.ofType(Observation).meta.profile.where($this.indexOf('|')>0 and ($this.indexOf('|')>0 implies ($this.substring(0,$this.indexOf('|'))!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Observation_LabResult_eCS'))).exists()).not()) or ((entry.resource.ofType(Observation).meta.profile.where($this!='http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Observation_LabResult_eCS').exists()).not()))
2. Bundle.meta
4. Bundle.meta.lastUpdated
Control1..?
Must Supporttrue
6. Bundle.meta.profile
Definition

準拠しているプロファイルとして次のURLとバージョンを指定する。バージョン指定を省略した場合には、データ受信時点の最新バージョンとみなされる。http://jpfhir.jp/fhir/clins/StructureDefinition/JP_Bundle_CLINS|x.y.z

Short準拠しているプロファイルとして次のURLとバージョンを指定する。バージョン指定を省略した場合には、データ受信時点の最新バージョンとみなされる。http://jpfhir.jp/fhir/clins/StructureDefinition/JP_Bundle_CLINS|x.y.z
Control1..?
Must Supporttrue
8. Bundle.meta.tag
Control1..?
SlicingThis element introduces a set of slices on Bundle.meta.tag. The slices areUnordered and Open, and can be differentiated using the following discriminators:
  • value @ system
  • 10. Bundle.meta.tag:resourceType
    Slice NameresourceType
    Definition

    CLINSでのBundleリソースに含まれる5情報リソースカテゴリーをmeta.tag要素に記述する。

    ShortCLINSでのBundleリソースに含まれる5情報リソースカテゴリーをmeta.tag要素に記述する。
    Control1..1
    Must Supporttrue
    12. Bundle.meta.tag:resourceType.system
    Definition

    固定値 http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS を設定する。

    Short固定値 http://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS を設定する。
    Control1..?
    Must Supporttrue
    Pattern Valuehttp://jpfhir.jp/fhir/clins/CodeSystem/BundleResourceType_CS
    14. Bundle.meta.tag:resourceType.code
    Definition

    Bundleリソースに含まれる5情報リソースカテゴリーのいずれかを http://jpfhir.jp/fhir/clins/ValueSet/BundleResourceType_VSのValuseSetから設定する。具体的には、"AllergyIntolerance"、"Condition"、"Observation"、"MedicationRequest" のいずれかの値を設定する。

    ShortBundleリソースに含まれる5情報リソースカテゴリーのいずれかを http://jpfhir.jp/fhir/clins/ValueSet/BundleResourceType_VSのValuseSetから設定する。具体的には、"AllergyIntolerance"、"Condition"、"Observation"、"MedicationRequest" のいずれかの値を設定する。
    Control1..?
    BindingThe codes SHALL be taken from 5情報Bundle5情報リソースタイプ valueSet
    (required to http://jpfhir.jp/fhir/clins/ValueSet/BundleResourceType_VS)
    Must Supporttrue
    16. Bundle.identifier
    Definition

    Bundleリソースのidentifier要素は、電子カルテ情報共有サービス側で保存される。送信側は、後続の送信においてこのidentifierを指定することで、受信側は過去に受信したBundleリソースを特定し、それに含まれていた全データについて削除、更新などの処理を行うためにこれを使用する。

    Shortこの文書Bundleの固定識別子。
    Comments

    Bundleリソースのidentifier要素は以下の通りとする。

    Bundle.identifier.system : system値として、”http://jpfhir.jp/fhir/clins/bundle-identifier” を設定する。

    Bundle.identifier.value : 実装ガイド本文 5情報送信仕様--Bundleリソースを識別するIdentifier要素-- に記載の[Bundle-ID]の仕様とする。

    NoteThis is a business identifier, not a resource identifier (see discussion)
    Control1..?
    Must Supporttrue
    18. Bundle.identifier.system
    Control1..?
    Must Supporttrue
    Fixed Valuehttp://jpfhir.jp/fhir/clins/bundle-identifier
    20. Bundle.identifier.value
    Control1..?
    Must Supporttrue
    22. Bundle.type
    Definition

    このバンドルの目的コード。本プロファイルでは collection 固定とする。 (document | message | transaction | transaction_response | batch | batch_response | history | searchset | collection)

    Must Supporttrue
    Fixed Valuecollection
    24. Bundle.timestamp
    Definition

    このリソースを生成した日時。時刻の精度はミリ秒とし、タイムゾーンを含めること。 例:"2021-02-01T13:28:17.239+09:00"

    Shortこのバンドルリソースのインスタンスが作成された日時。
    Control1..?
    Must Supporttrue
    26. Bundle.entry
    Control1..?
    SlicingThis element introduces a set of slices on Bundle.entry. The slices areOrdered and Closed, and can be differentiated using the following discriminators:
    • profile @ resource
    • 28. Bundle.entry:patient
      Slice Namepatient
      Definition

      患者情報

      ShortPatientリソース
      Control1..1
      Must Supporttrue
      30. Bundle.entry:patient.extension
      Control0..0
      32. Bundle.entry:patient.modifierExtension
      Control0..0
      34. Bundle.entry:patient.link
      Control0..0
      Must Supporttrue
      36. Bundle.entry:patient.fullUrl
      Control1..?
      Must Supporttrue
      38. Bundle.entry:patient.resource
      Control1..?
      TypePatient(JP_Patient_eCS)
      Must Supporttrue
      40. Bundle.entry:patient.search
      Control0..0
      42. Bundle.entry:patient.request
      Control0..0
      44. Bundle.entry:patient.response
      Control0..0
      46. Bundle.entry:allergyIntolerance
      Slice NameallergyIntolerance
      Definition

      アレルギー情報/薬剤アレルギー等情報

      ShortAllergyIntoleranceリソース
      Control0..*
      48. Bundle.entry:allergyIntolerance.extension
      Control0..0
      50. Bundle.entry:allergyIntolerance.modifierExtension
      Control0..0
      52. Bundle.entry:allergyIntolerance.link
      Control0..0
      Must Supporttrue
      54. Bundle.entry:allergyIntolerance.fullUrl
      Control1..?
      Must Supporttrue
      56. Bundle.entry:allergyIntolerance.resource
      Control1..?
      TypeAllergyIntolerance(JP_AllergyIntolerance_eCS)
      Must Supporttrue
      58. Bundle.entry:allergyIntolerance.search
      Control0..0
      60. Bundle.entry:allergyIntolerance.request
      Control0..0
      62. Bundle.entry:allergyIntolerance.response
      Control0..0
      64. Bundle.entry:condition
      Slice Namecondition
      Definition

      傷病名情報

      ShortConditionリソース
      Control0..*
      66. Bundle.entry:condition.extension
      Control0..0
      68. Bundle.entry:condition.modifierExtension
      Control0..0
      70. Bundle.entry:condition.link
      Control0..0
      Must Supporttrue
      72. Bundle.entry:condition.fullUrl
      Control1..?
      Must Supporttrue
      74. Bundle.entry:condition.resource
      Control1..?
      TypeCondition(JP_Condition_eCS)
      Must Supporttrue
      76. Bundle.entry:condition.search
      Control0..0
      78. Bundle.entry:condition.request
      Control0..0
      80. Bundle.entry:condition.response
      Control0..0
      82. Bundle.entry:medicationRequest
      Slice NamemedicationRequest
      Definition

      処方情報

      ShortMedicationRequestリソース
      Control0..*
      84. Bundle.entry:medicationRequest.extension
      Control0..0
      86. Bundle.entry:medicationRequest.modifierExtension
      Control0..0
      88. Bundle.entry:medicationRequest.link
      Control0..0
      Must Supporttrue
      90. Bundle.entry:medicationRequest.fullUrl
      Control1..?
      Must Supporttrue
      92. Bundle.entry:medicationRequest.resource
      Control1..?
      TypeMedicationRequest(JP_MedicationRequest_eCS)
      Must Supporttrue
      94. Bundle.entry:medicationRequest.search
      Control0..0
      96. Bundle.entry:medicationRequest.request
      Control0..0
      98. Bundle.entry:medicationRequest.response
      Control0..0
      100. Bundle.entry:observationLaboResult
      Slice NameobservationLaboResult
      Definition

      検体検査結果/感染症情報

      ShortObservationリソース
      Control0..*
      102. Bundle.entry:observationLaboResult.extension
      Control0..0
      104. Bundle.entry:observationLaboResult.modifierExtension
      Control0..0
      106. Bundle.entry:observationLaboResult.link
      Control0..0
      Must Supporttrue
      108. Bundle.entry:observationLaboResult.fullUrl
      Control1..?
      Must Supporttrue
      110. Bundle.entry:observationLaboResult.resource
      Control1..?
      TypeObservation(JP_Observation_LabResult_eCS)
      Must Supporttrue
      112. Bundle.entry:observationLaboResult.search
      Control0..0
      114. Bundle.entry:observationLaboResult.request
      Control0..0
      116. Bundle.entry:observationLaboResult.response
      Control0..0