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

Resource Profile: eCS/CLINS:JP_Patient_eCS

項目内容
定義URL http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Patient_eCS
Version 1.3.0-rc3
Name

JP_Patient_eCS

Title

eCS/CLINS:JP_Patient_eCS

Status Active ( 2024-06-24 )
Copyright

(一社)日本医療情報学会. CC BY-ND 4.0

eCS/CLINS Patientリソース(患者情報)プロファイル


eCS/CLINS 診療情報・サマリー汎用:【患者情報】

背景および想定シナリオ

このプロファイルは、5情報をはじめ、診療情報提供書や退院時サマリーなどの2文書や、診療5情報・サマリー用に「患者情報」を記述するためのものである。 電子カルテ情報共有サービスに送信する場合、および同サービスに送信される2文書に含まれる場合、このプロファイルを使用することができる。電子カルテ情報共有サービスに送信する場合、および同サービスに送信される2文書に含まれる場合、このプロファイルを使用することができる。

スコープ

対象

 患者、診療情報の記述の対象者。

対象としないこと

 家族、近親者などは、RelatedPersonリソースタイプ、医療者はPractitioner リソースタイプのそれぞれ派生プロファイルが使用できる。

プロファイル定義における必須要素と推奨要素

  • 必須要素は、その要素が必ず1個以上出現しなければならない要素。FHIR仕様ではMust Supportフラグを設定している。
  • 推奨要素は、送信側はシステムに値が存在しているなら、値を格納した要素が必ず1個以上出現しなければならず、受信側は必ずその値を格納しなければならない要素。FHIR仕様ではMust Supportフラグを設定している。

必須要素

  • resourceType : リソースタイプ “Patient”
  • meta.profile : プロファイルURL
  • extension (eCS_InstitutionNumber) : 電子カルテ情報共有サービスでは必須。医療機関番号10桁
  • identifier : インスタンス識別ID。電子カルテ情報共有サービスでは、被保険者個人識別子の記述が必須。
  • name : 姓と名、それぞれname.family、name.givenが必須。
  • gender : 性別 必須。
  • birthDate : 生年月日 必須。
  • address : address.text に住所全体の文字列、address.cityに市町村名(例:文京区)、address.stateに都道府県名(例:東京都)が必須。

条件により必須

  • 特記なし。

推奨要素

  • 特記なし。

MustSupport要素

 - 必須要素、条件により必須要素、推奨要素は、自動的にMustSupport要素である。それ以外に以下の要素がMustSupport要素である。

  • 該当なし。

要素の説明とプロファイル

患者プロファイルについては、JP-CoreのJP_Patient を参照のこと。ただし、上記必須情報を満たすこと。

Usage:

プロファイル詳細

This structure is derived from JP_Patient

NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* JP_Patient 患者情報の記述に使用する。
valid-system-local-patientID: R1010:施設患者IDを記述する場合には、identifier.systemは、'urn:oid:1.2.392.100495.20.3.51.[1+施設番号10桁]'でなければならない。
valid-system-insurance-patientIdentifier: R1012:被保険者識別子情報(identifier.system="http://jpfhir.jp/fhir/clins/Idsystem/JP_Insurance_memberID")は1つだけ必須。
valid-value-insurance-patientIdentifier: R1013:identifier.value 被保険者識別子情報の形式は、"保険者等番号:被保険者記号:被保険者番号:被保険者証等枝番"で、それぞれ半角英数字8桁固定、半角または全角文字列(空白を含まない)、半角または全角文字列(同)、半角数字2桁固定(1文字目は0)であり、それぞれ存在しない場合には、空文字列とする。
... meta
.... versionId 0..1 id バージョン固有の識別子
.... lastUpdated S 0..1 instant 最終更新日
.... source 0..1 uri 「リソースがどこから来たかを特定する」(Risōsu ga doko kara kita ka o tokutei suru)
.... profile S 1..1 canonical(StructureDefinition) 準拠しているプロファイルとして次のURLを指定する。http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Patient_eCS
... identifier 1..* Identifier 保険者・被保険者番号情報、自施設の患者番号など。
.... system 0..1 uri The namespace for the identifier value 【詳細参照】
.... value 1..1 string 識別子のvalueは一意である必要がある。 【詳細参照】
... active 0..1 boolean この患者の記録が積極的に使用されているかどうか / Whether this patient's record is in active use
... name S 1..* JP_HumanName 患者に関連付けられた名前 / A name associated with the patient
.... extension 0..* Extension Extension
..... url 1..1 uri 拡張機能の意味を識別します / identifies the meaning of the extension
..... Slices for value[x] 0..1 base64Binary, boolean, canonical(), code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta 拡張値の値 / Value of extension
Slice: Unordered, Open by type:$this
...... value[x]:valueCode 0..1 code 拡張値の値 / Value of extension
.... use 0..1 code 通常|公式|一時的|ニックネーム|匿名|古い|未婚女性 / usual | official | temp | nickname | anonymous | old | maiden
.... text 0..1 string フルネームのテキスト表現 / Text representation of the full name
.... family S 1..1 string 姓(「姓」と呼ばれることが多い) / Family name (often called 'Surname')
.... given S 1..* string 指定された名前(常に「最初」ではありません)。ミドルネームが含まれています / Given names (not always 'first'). Includes middle names
... telecom
.... system 0..1 code phone | fax | email | pager | url | sms | other 【詳細参照】
.... value 0..1 string 実際の連絡先の詳細
.... use 0..1 code home | work | temp | old | mobile - 連絡先の用途等 【詳細参照】
... gender S 1..1 code 男性|女性|その他|わからない / male | female | other | unknown
... birthDate S 1..1 date 個人の生年月日
... address S 1..1 Address 個人の住所 【詳細参照】
.... use 0..1 code home | work | temp | old | billing - purpose of this address 住所の用途 【詳細参照】
.... text S 1..1 string 住所のテキスト表現 【詳細参照】
.... postalCode 0..1 string 郵便番号 【詳細参照】
.... country 0..1 string 国名またはISO 3166コード (ISO 3166 2 or 3文字こーど)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Patient C 0..* JP_Patient 患者情報の記述に使用する。
valid-system-local-patientID: R1010:施設患者IDを記述する場合には、identifier.systemは、'urn:oid:1.2.392.100495.20.3.51.[1+施設番号10桁]'でなければならない。
valid-system-insurance-patientIdentifier: R1012:被保険者識別子情報(identifier.system="http://jpfhir.jp/fhir/clins/Idsystem/JP_Insurance_memberID")は1つだけ必須。
valid-value-insurance-patientIdentifier: R1013:identifier.value 被保険者識別子情報の形式は、"保険者等番号:被保険者記号:被保険者番号:被保険者証等枝番"で、それぞれ半角英数字8桁固定、半角または全角文字列(空白を含まない)、半角または全角文字列(同)、半角数字2桁固定(1文字目は0)であり、それぞれ存在しない場合には、空文字列とする。
... id Σ 0..1 id このアーティファクトの論理ID / Logical id of this artifact
... meta Σ 0..1 Meta リソースに関するメタデータ / Metadata about the resource
.... id 0..1 string エレメント相互参照のためのユニークID
.... extension 0..* Extension 実装によって定義される追加コンテンツ
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id バージョン固有の識別子
.... lastUpdated SΣ 0..1 instant 最終更新日
.... source Σ 0..1 uri 「リソースがどこから来たかを特定する」(Risōsu ga doko kara kita ka o tokutei suru)
.... profile SΣ 1..1 canonical(StructureDefinition) 準拠しているプロファイルとして次のURLを指定する。http://jpfhir.jp/fhir/eCS/StructureDefinition/JP_Patient_eCS
.... security Σ 0..* Coding このリソースに適用されたセキュリティラベル
Binding: All Security Labels (extensible): 医療プライバシーおよびセキュリティ分類システムからのセキュリティラベル。


.... tag Σ 0..* Coding このリソースに適用されたタグ
Binding: CommonTags (example): 「様々なタグを表すコードで、一般的にはワークフローに関連しています。


... implicitRules ?!Σ 0..1 uri このコンテンツが作成されたルールのセット / A set of rules under which this content was created
... language 0..1 code リソースコンテンツの言語 / Language of the resource content
Binding: CommonLanguages (preferred): 人間の言語。 / A human language.

Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative 人間の解釈のためのリソースのテキスト概要 / Text summary of the resource, for human interpretation
... contained 0..* Resource インラインリソースが含まれています / Contained, inline Resources
... Slices for extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
Slice: Unordered, Open by value:url
.... religion 0..* CodeableConcept 患者の宗教 【詳細参照】
URL: http://hl7.org/fhir/StructureDefinition/patient-religion
Binding: ReligiousAffiliation (preferred)
.... birthPlace 0..1 Address 患者の生誕地 【詳細参照】
URL: http://hl7.org/fhir/StructureDefinition/patient-birthPlace
.... race 0..* CodeableConcept 患者の人種 【詳細参照】
URL: http://jpfhir.jp/fhir/core/Extension/StructureDefinition/JP_Patient_Race
Binding: Race (preferred)
... modifierExtension ?! 0..* Extension 無視できない拡張機能 / Extensions that cannot be ignored
... identifier Σ 1..* Identifier 保険者・被保険者番号情報、自施設の患者番号など。
.... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
.... extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known) 【詳細参照】
Binding: IdentifierUse (required): 既知の場合、この識別子の目的を識別します。 / Identifies the purpose for this identifier, if known .

.... type Σ 0..1 CodeableConcept 識別子の種別 【詳細参照】
Binding: Identifier Type Codes (extensible): 特定の目的に使用する識別子を決定するために使用できる識別子のコード化されたタイプ。 / A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ 0..1 uri The namespace for the identifier value 【詳細参照】
.... value Σ 1..1 string 識別子のvalueは一意である必要がある。 【詳細参照】
.... period Σ 0..1 Period IDが使用に有効だった時間期間 / Time period when id is/was valid for use
.... assigner Σ 0..1 Reference(JP Core Organization Profile) IDを発行した組織(単なるテキストである可能性があります) / Organization that issued id (may be just text)
... active ?!Σ 0..1 boolean この患者の記録が積極的に使用されているかどうか / Whether this patient's record is in active use
... name SΣ 1..* JP_HumanName 患者に関連付けられた名前 / A name associated with the patient
.... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
.... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
..... extension:All Slices Content/Rules for all slices
...... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
...... extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
Slice: Unordered, Open by value:url
...... url 1..1 uri 拡張機能の意味を識別します / identifies the meaning of the extension
...... Slices for value[x] 0..1 拡張値の値 / Value of extension
Slice: Unordered, Open by type:$this
....... valueBase64Binary base64Binary
....... valueBoolean boolean
....... valueCanonical canonical(Any)
....... valueCode code
....... valueDate date
....... valueDateTime dateTime
....... valueDecimal decimal
....... valueId id
....... valueInstant instant
....... valueInteger integer
....... valueMarkdown markdown
....... valueOid oid
....... valuePositiveInt positiveInt
....... valueString string
....... valueTime time
....... valueUnsignedInt unsignedInt
....... valueUri uri
....... valueUrl url
....... valueUuid uuid
....... valueAddress Address
....... valueAge Age
....... valueAnnotation Annotation
....... valueAttachment Attachment
....... valueCodeableConcept CodeableConcept
....... valueCoding Coding
....... valueContactPoint ContactPoint
....... valueCount Count
....... valueDistance Distance
....... valueDuration Duration
....... valueHumanName HumanName
....... valueIdentifier Identifier
....... valueMoney Money
....... valuePeriod Period
....... valueQuantity Quantity
....... valueRange Range
....... valueRatio Ratio
....... valueReference Reference(Any)
....... valueSampledData SampledData
....... valueSignature Signature
....... valueTiming Timing
....... valueContactDetail ContactDetail
....... valueContributor Contributor
....... valueDataRequirement DataRequirement
....... valueExpression Expression
....... valueParameterDefinition ParameterDefinition
....... valueRelatedArtifact RelatedArtifact
....... valueTriggerDefinition TriggerDefinition
....... valueUsageContext UsageContext
....... valueDosage Dosage
....... valueMeta Meta
....... value[x]:valueCode 0..1 code 拡張値の値 / Value of extension
..... nameRepresentationUse 0..1 code 実装で定義された追加のコンテンツ / Additional content defined by implementations
URL: http://hl7.org/fhir/StructureDefinition/iso21090-EN-representation
Binding: NameRepresentationUse (required)
.... use ?!Σ 0..1 code 通常|公式|一時的|ニックネーム|匿名|古い|未婚女性 / usual | official | temp | nickname | anonymous | old | maiden
Binding: NameUse (required): 人間名の使用。 / The use of a human name.

.... text Σ 0..1 string フルネームのテキスト表現 / Text representation of the full name
.... family SΣ 1..1 string 姓(「姓」と呼ばれることが多い) / Family name (often called 'Surname')
.... given SΣ 1..* string 指定された名前(常に「最初」ではありません)。ミドルネームが含まれています / Given names (not always 'first'). Includes middle names
This repeating element order: Given Names appear in the correct order for presenting the name
.... prefix Σ 0..* string 名前の前に来るパーツ / Parts that come before the name
This repeating element order: Prefixes appear in the correct order for presenting the name
.... suffix Σ 0..* string 名前の後に来るパーツ / Parts that come after the name
This repeating element order: Suffixes appear in the correct order for presenting the name
.... period Σ 0..1 Period 名前が使用されていた期間 / Time period when name was/is in use
... telecom Σ 0..* ContactPoint 個人に連絡するための連絡先の詳細
.... id 0..1 string エレメント相互参照のためのユニークID
.... extension 0..* Extension 実装によって定義される追加コンテンツ
Slice: Unordered, Open by value:url
.... system ΣC 0..1 code phone | fax | email | pager | url | sms | other 【詳細参照】
Binding: ContactPointSystem (required): 連絡先のための通信フォーム。

.... value Σ 0..1 string 実際の連絡先の詳細
.... use ?!Σ 0..1 code home | work | temp | old | mobile - 連絡先の用途等 【詳細参照】
Binding: ContactPointUse (required): 「接点の使用。」

.... rank Σ 0..1 positiveInt 使用の優先順位を指定してください(1が最も優先度が高い)
.... period Σ 0..1 Period コンタクトポイントが使用されている時間帯
... gender SΣ 1..1 code 男性|女性|その他|わからない / male | female | other | unknown
Binding: AdministrativeGender (required): 管理目的で使用される人の性別。 / The gender of a person used for administrative purposes.

... birthDate SΣ 1..1 date 個人の生年月日
... deceased[x] ?!Σ 0..1 個人が死亡しているかどうかを示す
.... deceasedBoolean boolean
.... deceasedDateTime dateTime
... address SΣ 1..1 Address 個人の住所 【詳細参照】
.... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
.... extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!Σ 0..1 code home | work | temp | old | billing - purpose of this address 住所の用途 【詳細参照】
Binding: AddressUse (required): アドレスの使用。 / The use of an address.

.... type Σ 0..1 code postal | physical | both 【詳細参照】
Binding: AddressType (required): アドレスのタイプ(物理 /郵便)。 / The type of an address (physical / postal).

.... text SΣ 1..1 string 住所のテキスト表現 【詳細参照】
.... line Σ 0..* string ストリート名や番地など 【詳細参照】
This repeating element order: The order in which lines should appear in an address label
.... city Σ 0..1 string 市区町村名 【詳細参照】
.... district Σ 0..1 string 地区名 【詳細参照】
.... state Σ 0..1 string 国の次の地区単位 【詳細参照】
.... postalCode Σ 0..1 string 郵便番号 【詳細参照】
.... country Σ 0..1 string 国名またはISO 3166コード (ISO 3166 2 or 3文字こーど)
.... period Σ 0..1 Period 住所が使用されていた(いる)期間
... maritalStatus 0..1 CodeableConcept 患者の婚姻(市民)状態 【詳細参照】
Binding: Marital Status Codes (extensible): 人の国内パートナーシップの状況。 / The domestic partnership status of a person.

... multipleBirth[x] 0..1 患者が多胎出産の一人かどうか
.... multipleBirthBoolean boolean
.... multipleBirthInteger integer
... photo 0..* Attachment 患者の画像
... contact C 0..* BackboneElement 患者の連絡先者(例:保護者、パートナー、友人)
pat-1: 少なくとも連絡先の詳細または組織への参照を含めるものとする / SHALL at least contain a contact's details or a reference to an organization
.... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
.... extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension 認識されていなくても無視できない拡張機能 / Extensions that cannot be ignored even if unrecognized
.... relationship 0..* CodeableConcept 関係性の種類 【詳細参照】
Binding: PatientContactRelationship (extensible): その患者の患者と接触者との関係の性質。 / The nature of the relationship between a patient and a contact person for that patient.


.... name 0..1 HumanName 連絡先に関連付けられた名前 / A name associated with the contact person
.... telecom 0..* ContactPoint 人の連絡先の詳細 / A contact detail for the person
.... address 0..1 Address 連絡先の住所 / Address for the contact person
.... gender 0..1 code 男性|女性|その他|わからない / male | female | other | unknown
Binding: AdministrativeGender (required): 管理目的で使用される人の性別。 / The gender of a person used for administrative purposes.

.... organization C 0..1 Reference(JP Core Organization Profile) 連絡先に関連する組織 / Organization that is associated with the contact
.... period 0..1 Period この患者に関連するこの連絡先または組織が連絡するのが有効な期間 / The period during which this contact person or organization is valid to be contacted relating to this patient
... communication 0..* BackboneElement 健康について患者と会話する際に使用する言語
.... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
.... extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension 認識されていなくても無視できない拡張機能 / Extensions that cannot be ignored even if unrecognized
.... language 1..1 CodeableConcept 健康について患者と会話する際に使用する言語。 【詳細参照】
Binding: CommonLanguages (preferred): 人間の言語。 / A human language.

Additional BindingsPurpose
AllLanguages Max Binding
.... preferred 0..1 boolean 言語選好インジケーター / Language preference indicator
... generalPractitioner 0..* Reference(JP Core Organization Profile | JP Core Practitioner Profile | JP Core PractitionerRole Profile) 患者が指名するケア提供者
... managingOrganization Σ 0..1 Reference(JP Core Organization Profile) 患者記録の管理者である組織
... link ?!Σ 0..* BackboneElement 同じ実際の人に関係する別の患者リソースへのリンク / Link to another patient resource that concerns the same actual person
.... id 0..1 string 要素間参照のための一意のID / Unique id for inter-element referencing
.... extension 0..* Extension 実装で定義された追加のコンテンツ / Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension 認識されていなくても無視できない拡張機能 / Extensions that cannot be ignored even if unrecognized
.... other Σ 1..1 Reference(JP Core Patient Profile | RelatedPerson) リンクが指す他の患者または関連者のリソース / The other patient or related person resource that the link refers to
.... type Σ 1..1 code replaced-by | replaces | refer | seealso 【詳細参照】
Binding: LinkType (required): この患者リソースと別の患者リソースとの間のリンクのタイプ。 / The type of link between this patient resource and another patient resource.


doco Documentation for this format

Terminology バインディング

PathConformanceValueSetURI
Patient.meta.securityextensibleAll Security Labels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
Patient.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
Patient.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Patient.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
from the FHIR Standard
Patient.identifier.typeextensibleIdentifier Type Codes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Patient.name.userequiredNameUse
http://hl7.org/fhir/ValueSet/name-use|4.0.1
from the FHIR Standard
Patient.telecom.systemrequiredContactPointSystem
http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
from the FHIR Standard
Patient.telecom.userequiredContactPointUse
http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
from the FHIR Standard
Patient.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
from the FHIR Standard
Patient.address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
from the FHIR Standard
Patient.address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
from the FHIR Standard
Patient.maritalStatusextensibleMarital Status Codes
http://hl7.org/fhir/ValueSet/marital-status
from the FHIR Standard
Patient.contact.relationshipextensiblePatientContactRelationship
http://hl7.org/fhir/ValueSet/patient-contactrelationship
from the FHIR Standard
Patient.contact.genderrequiredAdministrativeGender
http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
from the FHIR Standard
Patient.communication.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
Patient.link.typerequiredLinkType
http://hl7.org/fhir/ValueSet/link-type|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorPatientリソースが別のリソースに含まれている場合、ネストされたリソースを含めてはなりません / If the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorPatientリソースが別のリソースに含まれている場合、それはリソースの他の場所から参照されるか、含有リソースを参照するものとします / If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorPatientリソースが別のリソースに含まれている場合、meta.versionidもmeta.lastupdatedも持ってはならない。 / If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorPatient別のリソースにリソースが含まれている場合、セキュリティラベルはありません / If a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practicePatientリソースには、堅牢な管理のための叙述(Narative)が必要です / A resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsすべてのFHIR要素には、@valueまたは子供が必要です / All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensions「拡張機能または値[x]のいずれかが必要です。両方ではありません。」
: extension.exists() != value.exists()
pat-1errorPatient.contact少なくとも連絡先の詳細または組織への参照を含めるものとする / SHALL at least contain a contact's details or a reference to an organization
: name.exists() or telecom.exists() or address.exists() or organization.exists()
valid-system-insurance-patientIdentifiererrorPatientR1012:被保険者識別子情報(identifier.system="http://jpfhir.jp/fhir/clins/Idsystem/JP_Insurance_memberID")は1つだけ必須。
: (identifier.where(system = 'http://jpfhir.jp/fhir/clins/Idsystem/JP_Insurance_memberID').count()=1)
valid-system-local-patientIDerrorPatientR1010:施設患者IDを記述する場合には、identifier.systemは、'urn:oid:1.2.392.100495.20.3.51.[1+施設番号10桁]'でなければならない。
: (identifier.where(system.substring(0,31) = 'urn:oid:1.2.392.100495.20.3.51.').count()=1 and (identifier.where(system.substring(0,31) = 'urn:oid:1.2.392.100495.20.3.51.')).system.substring(31,1) = '1' and (identifier.where(system.substring(0,31) = 'urn:oid:1.2.392.100495.20.3.51.')).system.substring(32).matches('^[0-4][0-9][1-3][0-9]{7}$')) or (identifier.where(system.substring(0,31) = 'urn:oid:1.2.392.100495.20.3.51.').empty())
valid-value-insurance-patientIdentifiererrorPatientR1013:identifier.value 被保険者識別子情報の形式は、"保険者等番号:被保険者記号:被保険者番号:被保険者証等枝番"で、それぞれ半角英数字8桁固定、半角または全角文字列(空白を含まない)、半角または全角文字列(同)、半角数字2桁固定(1文字目は0)であり、それぞれ存在しない場合には、空文字列とする。
: (identifier.where(system = 'http://jpfhir.jp/fhir/clins/Idsystem/JP_Insurance_memberID').count()=1 and identifier.where(system = 'http://jpfhir.jp/fhir/clins/Idsystem/JP_Insurance_memberID').value.matches('^[0-9]{8}:[^:^\\s^ ]*:[^:^\\s^ ]*:0[0-9]$'))