sm-condition
type: StructureDefinition
node role: treeRoot
id:
  v: sm-condition
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition sm-condition Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Condition 0..* Condition 有关病情、问题或诊断的详细信息 id 0..1 id 不重复的ID用以识别储存在特定FHIR Server中的Condition纪录，通常又称为逻辑性ID。 extension 0..* Extension 扩展字段 identifier 0..* Identifier 此病情、问题或诊断的外部识别码 clinicalStatus S 1..1 CodeableConcept active | recurrence | relapse | inactive | remission | resolved ，病情、问题或诊断的临床状态。 Binding: ConditionClinicalStatusCodes (required) verificationStatus S 0..1 CodeableConcept unconfirmed | provisional | differential | confirmed | refuted | entered-in-error ，支持或拒绝病情、问题或诊断的临床状态的验证状态。 Binding: ConditionVerificationStatus (required) category 0..* CodeableConcept problem-list-item | encounter-diagnosis ，指定病情、问题或诊断的类别。 severity S 0..1 CodeableConcept 病情、问题或诊断的主观严重程度 Binding: Condition/DiagnosisSeverity (extensible) code S 0..1 CodeableConcept 病情、问题或诊断的识别 Binding: Condition/Problem/DiagnosisCodes (example) Slices for coding 0..* Coding 由专门术语系统（terminology system）定义的代码。此资料项目为可扩充绑定预设国际标准值集，但实作者可视实务专案需求只绑定以下slices中的任一值集。目前未只限定绑定预设值集是因为尚无slice值集与预设国际标准值集的代码对应表，待后续有相对的代码对应表后将建议采用国际标准值集作为唯一绑定值集并针对该值集进行扩充与管理，以利进行跨国与跨系统之资料交换。 Slice: Unordered, Open by pattern:$this coding:absentOrUnknownProblem S 0..1 Coding 不存在的问题或未知问题的代码 Binding: Absent or Unknown Problems - IPS (required): 应填入所绑定值集中的其中一个代码。 coding:sct S 0..1 Coding 此为SNOMED CT诊断代码，若机构已有购买相关授权，亦可使用。 Binding: ValueSet-SNOMED CT诊断代码值集 (required) bodySite S 0..* CodeableConcept 如果相关请填写解剖位置 Binding: SNOMEDCTBodyStructures (extensible) subject S 1..1 Reference(SmPatient | Group) 谁有此病情、问题或诊断？ encounter 0..1 Reference(Encounter) 作为病情、问题或诊断纪录的一部分的就医（Encounter）纪录 onset[x] S 0..1 dateTime, Age, Period, Range, string 估计的或实际的日期、日期—时间或年龄。医师认为此病情、问题或诊断之推估或实际发生时间或日期时间等 abatement[x] S 0..1 dateTime, Age, Period, Range, string 何时解决/缓解 recorder 0..1 Reference(SmPractitioner | SmPractitionerRole | SmPatient | RelatedPerson) 谁记录此病情、问题或诊断 asserter S 0..1 Reference(SmPractitione…
url:
  v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-condition
version:
  v: 1.0.0
name:
  v: SmCondition
title:
  v: SmCondition
status:
  v: draft
date:
  v: 2024-11-11T09:31:51+00:00
publisher:
  v: whcater
contact:
  name:
    v: whcater
  telecom:
    system:
      v: url
    value:
      v: https://whcater.github.io/serious-med-ig/
description:
  v: 病情、问题或诊断
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: sct-concept
  uri:
    v: http://snomed.info/conceptdomain
  name:
    v: SNOMED CT Concept Domain Binding
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: sct-attr
  uri:
    v: http://snomed.org/attributebinding
  name:
    v: SNOMED CT Attribute Binding
kind:
  v: resource
abstract:
  v: false
type:
  v: Condition
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  link: http://hl7.org/fhir/StructureDefinition/Condition
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Condition
    path:
      v: Condition
    short:
      v: 有关病情、问题或诊断的详细信息
    definition:
      v: 一个临床病情、问题、诊断或其他事件、情况、或临床概念，已上升到需要关注的程度。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Condition
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: con-3
      severity:
        v: warning
      human:
        v: Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item
      expression:
        v: clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()
      xpath:
        v: exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))
      source:
        v: http://hl7.org/fhir/StructureDefinition/Condition
        link: http://hl7.org/fhir/StructureDefinition/Condition
    constraint:
      key:
        v: con-4
      severity:
        v: error
      human:
        v: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission
      expression:
        v: abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()
      xpath:
        v: not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])
      source:
        v: http://hl7.org/fhir/StructureDefinition/Condition
        link: http://hl7.org/fhir/StructureDefinition/Condition
    constraint:
      key:
        v: con-5
      severity:
        v: error
      human:
        v: Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
      expression:
        v: verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()
      xpath:
        v: not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))
      source:
        v: http://hl7.org/fhir/StructureDefinition/Condition
        link: http://hl7.org/fhir/StructureDefinition/Condition
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: 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
      expression:
        v: 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()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))

v: true

v: Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis.

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
  value:
    v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
key:
  v: dom-6
severity:
  v: warning
human:
  v: A resource should have narrative for robust management
expression:
  v: text.`div`.exists()
xpath:
  v: exists(f:text/h:div)
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

v: false

v: false

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Event

identity:
  v: sct-concept
map:
  v: < 243796009 |Situation with explicit context| : 246090004 |Associated finding| = ( ( < 404684003 |Clinical finding| MINUS ( << 420134006 |Propensity to adverse reactions| OR << 473010000 |Hypersensitivity condition| OR << 79899007 |Drug interaction| OR << 69449002 |Drug action| OR << 441742003 |Evaluation finding| OR << 307824009 |Administrative status| OR << 385356007 |Tumor stage finding|)) OR < 272379006 |Event|)

identity:
  v: v2
map:
  v: PPR message

identity:
  v: rim
map:
  v: Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]

id:
  v: Condition.id
path:
  v: Condition.id
short:
  v: 不重复的ID用以识别储存在特定FHIR Server中的Condition纪录，通常又称为逻辑性ID。
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: 一个resource使用新增操作（create operation）提交给服务器时，此resource没有id，它的id在resource被创建后由服务器分配/指定。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: Condition.meta
path:
  v: Condition.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Condition.implicitRules
path:
  v: Condition.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: Condition.language
path:
  v: Condition.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value:
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: Condition.text
path:
  v: Condition.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Condition.contained
path:
  v: Condition.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Condition.extension
path:
  v: Condition.extension
short:
  v: 扩展字段
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Condition.modifierExtension
path:
  v: Condition.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Condition.identifier
path:
  v: Condition.identifier
short:
  v: 此病情、问题或诊断的外部识别码
definition:
  v: 由执行者或其他系统指定给此病情、问题或诊断的业务用识别码，即使此resource作更新及在服务器之间的传递，此识别码仍保持不变。
comment:
  v: 这是一个业务识别码，不是一个resource识别码（详见讨论）。最好的做法是该识别码只出现在单个resource实例上，但是业务实务有可能会规定可以在多个resource实例中具有相同识别码—甚至可能具有不同的resource型例。例如：多个 「Patient（病人）」和 「Person（个人）」resource实例可能共用同一个社会保险号码。
requirements:
  v: Allows identification of the condition as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Condition.clinicalStatus
path:
  v: Condition.clinicalStatus
short:
  v: active | recurrence | relapse | inactive | remission | resolved ，病情、问题或诊断的临床状态。
definition:
  v: The clinical status of the condition.
comment:
  v: The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Condition.clinicalStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: con-3
condition:
  v: con-4
condition:
  v: con-5
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the status contains codes that mark the condition as no longer active.
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: sct-concept
  map:
    v: < 303105007 |Disease phases|
mapping:
  identity:
    v: v2
  map:
    v: PRB-14
mapping:
  identity:
    v: rim
  map:
    v: Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="clinicalStatus", moodCode=EVN].value

id:
  v: Condition.verificationStatus
path:
  v: Condition.verificationStatus
short:
  v: unconfirmed | provisional | differential | confirmed | refuted | entered-in-error ，支持或拒绝病情、问题或诊断的临床状态的验证状态。
definition:
  v: The verification status to support the clinical status of the condition.
comment:
  v: verificationStatus不是必须的。例如：当病人在急诊室出现腹痛时，不可能出现验证状态。资料类型是CodeableConcept，因为verificationStatus涉及到一些临床判断，因此可能需要比所需的FHIR值集更多的特殊性。例如：SNOMED编码可能允许更多的特殊性。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.verificationStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: con-3
condition:
  v: con-5
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: sct-concept
  map:
    v: < 410514004 |Finding context value|
mapping:
  identity:
    v: v2
  map:
    v: PRB-13
mapping:
  identity:
    v: rim
  map:
    v: Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="verificationStatus", moodCode=EVN].value
mapping:
  identity:
    v: sct-attr
  map:
    v: 408729009

id:
  v: Condition.category
path:
  v: Condition.category
short:
  v: problem-list-item | encounter-diagnosis ，指定病情、问题或诊断的类别。
definition:
  v: A category assigned to the condition.
comment:
  v: The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ConditionCategory
  strength:
    v: extensible
  description:
    v: A category assigned to the condition.
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-category
    link: http://hl7.org/fhir/ValueSet/condition-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: sct-concept
  map:
    v: < 404684003 |Clinical finding|
mapping:
  identity:
    v: v2
  map:
    v: 'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: Condition.severity
path:
  v: Condition.severity
short:
  v: 病情、问题或诊断的主观严重程度
definition:
  v: A subjective assessment of the severity of the condition as evaluated by the clinician.
comment:
  v: Coding of the severity with a terminology is preferred, where possible.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-severity
    link: http://hl7.org/fhir/ValueSet/condition-severity
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.grade
mapping:
  identity:
    v: sct-concept
  map:
    v: < 272141005 |Severities|
mapping:
  identity:
    v: v2
  map:
    v: PRB-26 / ABS-3
mapping:
  identity:
    v: rim
  map:
    v: Can be pre/post-coordinated into value. Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="severity"].value
mapping:
  identity:
    v: sct-attr
  map:
    v: 246112005

id:
  v: Condition.code
path:
  v: Condition.code
short:
  v: 病情、问题或诊断的识别
definition:
  v: Identification of the condition, problem or diagnosis.
requirements:
  v: 0..1 to account for primarily narrative only resources.
alias:
  v: type
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    link: http://hl7.org/fhir/ValueSet/condition-code
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: sct-concept
  map:
    v: code 246090004 |Associated finding| (< 404684003 |Clinical finding| MINUS << 420134006 |Propensity to adverse reactions| MINUS << 473010000 |Hypersensitivity condition| MINUS << 79899007 |Drug interaction| MINUS << 69449002 |Drug action| MINUS << 441742003 |Evaluation finding| MINUS << 307824009 |Administrative status| MINUS << 385356007 |Tumor stage finding|) OR < 413350009 |Finding with explicit context| OR < 272379006 |Event|
mapping:
  identity:
    v: v2
  map:
    v: PRB-3
mapping:
  identity:
    v: rim
  map:
    v: .value
mapping:
  identity:
    v: sct-attr
  map:
    v: 246090004

id:
  v: Condition.code.id
path:
  v: Condition.code.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.code.extension
path:
  v: Condition.code.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.code.coding
path:
  v: Condition.code.coding
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: 由专门术语系统（terminology system）定义的代码。此资料项目为可扩充绑定预设国际标准值集，但实作者可视实务专案需求只绑定以下slices中的任一值集。目前未只限定绑定预设值集是因为尚无slice值集与预设国际标准值集的代码对应表，待后续有相对的代码对应表后将建议采用国际标准值集作为唯一绑定值集并针对该值集进行扩充与管理，以利进行跨国与跨系统之资料交换。
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: Condition.code.coding:absentOrUnknownProblem
path:
  v: Condition.code.coding
slice name:
  v: absentOrUnknownProblem
short:
  v: 不存在的问题或未知问题的代码
definition:
  v: 表示「absent problem」或「problems unknown」的代码
comment:
  v: 代码可以在列举清单（enumerations）或代码清单（code lists）中非常随意地定义，直至有非常正式的定义，如SNOMED CT—更多信息见HL7 v3核心原则（Core Principles）。编码的排序是未定义的因而 **必须没有（SHALL NOT）** 被用来推断意义。一般来说，最多只有一个编码值（coding values）会被标记为UserSelected = true。
requirements:
  v: 允许使用者在不知道识别码系统的情况下利用识别码
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
    link: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: Condition.code.coding:sct
path:
  v: Condition.code.coding
slice name:
  v: sct
short:
  v: 此为SNOMED CT诊断代码，若机构已有购买相关授权，亦可使用。
definition:
  v: 由专门术语系统（terminology system）所定义之代码的参照。
comment:
  v: 代码可以在列举清单（enumerations）或代码清单（code lists）中非常随意地定义，直至有非常正式的定义，如SNOMED CT—更多信息见HL7 v3核心原则（Core Principles）。编码的排序是未定义的因而 **必须没有（SHALL NOT）** 被用来推断意义。一般来说，最多只有一个编码值（coding values）会被标记为UserSelected = true。
requirements:
  v: 允许使用者在不知道识别码系统的情况下利用识别码
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://whcater.github.io/serious-med-ig/ValueSet/condition-code-sct
    link: https://whcater.github.io/serious-med-ig/ValueSet/condition-code-sct
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: Condition.code.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: Condition.code.text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: Condition.bodySite
path:
  v: Condition.bodySite
short:
  v: 如果相关请填写解剖位置
definition:
  v: The anatomical location where this condition manifests itself.
comment:
  v: 只有在Condition.code中找到的代码未隐含此资料项目概念时才使用。如果使用案例（use-case）要求将BodySite作为一个单独的resource来处理（例如：识别和追踪），那么就使用标准的资料项目扩充方式来扩充bodySite。可以是一个摘要代码，也可以是对一个非常精确位置定义的参照，或者两者都是。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.bodySite
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/ValueSet/body-site
    link: http://hl7.org/fhir/ValueSet/body-site
mapping:
  identity:
    v: sct-concept
  map:
    v: < 442083009 |Anatomical or acquired body structure|
mapping:
  identity:
    v: rim
  map:
    v: .targetBodySiteCode
mapping:
  identity:
    v: sct-attr
  map:
    v: 363698007

id:
  v: Condition.subject
path:
  v: Condition.subject
short:
  v: 谁有此病情、问题或诊断？
definition:
  v: Indicates the patient or group who the condition record is associated with.
requirements:
  v: Group is typically used for veterinary or public health use cases.
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Condition.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group
    link: http://hl7.org/fhir/StructureDefinition/Group
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role[classCode=PAT]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: Condition.encounter
path:
  v: Condition.encounter
short:
  v: 作为病情、问题或诊断纪录的一部分的就医（Encounter）纪录
definition:
  v: The Encounter during which this Condition was created or to which the creation of this record is tightly associated.
comment:
  v: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. This record indicates the encounter this particular record is associated with. In the case of a "new" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first "known".
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.context
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-19 (+PV1-54)
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]

id:
  v: Condition.onset[x]
path:
  v: Condition.onset[x]
short:
  v: 估计的或实际的日期、日期—时间或年龄。医师认为此病情、问题或诊断之推估或实际发生时间或日期时间等
definition:
  v: Estimated or actual date or date-time the condition began, in the opinion of the clinician.
comment:
  v: Age is generally used when the patient reports an age at which the Condition began to occur.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.onset[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
type:
  code:
    v: Age
type:
  code:
    v: Period
type:
  code:
    v: Range
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.init
mapping:
  identity:
    v: v2
  map:
    v: PRB-16
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="age at onset"].value

id:
  v: Condition.abatement[x]
path:
  v: Condition.abatement[x]
short:
  v: 何时解决/缓解
definition:
  v: 病情、问题或诊断缓解或开始缓解的日期或估计日期。因为与「缓解（remissio）」或 「解决（resolution）」相关的许多过多含义—病情、问题或诊断不会真正解决，但它们可以缓解，所以称为「缓解 （abatement）」，
comment:
  v: There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated. If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid. When abatementString exists, it implies the condition is abated.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.abatement[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
type:
  code:
    v: Age
type:
  code:
    v: Period
type:
  code:
    v: Range
type:
  code:
    v: string
condition:
  v: con-4
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="age at remission"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed

id:
  v: Condition.recordedDate
path:
  v: Condition.recordedDate
short:
  v: Date record was first recorded
definition:
  v: The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.recordedDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: v2
  map:
    v: REL-11
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].time

id:
  v: Condition.recorder
path:
  v: Condition.recorder
short:
  v: 谁记录此病情、问题或诊断
definition:
  v: Individual who recorded the record and takes responsibility for its content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role

id:
  v: Condition.asserter
path:
  v: Condition.asserter
short:
  v: 声称有此病情、问题或诊断的人
definition:
  v: Individual who is making the condition statement.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.asserter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.source
mapping:
  identity:
    v: v2
  map:
    v: REL-7.1 identifier + REL-7.12 type code
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=INF].role

id:
  v: Condition.stage
path:
  v: Condition.stage
short:
  v: 分期（stage）／分级（grade），通常是正式的评估。
definition:
  v: 病情、问题或诊断的临床分期或分级，可能包括正式的严重程度评估。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.stage
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: con-1
  severity:
    v: error
  human:
    v: Stage SHALL have summary or assessment
  expression:
    v: summary.exists() or assessment.exists()
  xpath:
    v: exists(f:summary) or exists(f:assessment)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    link: http://hl7.org/fhir/StructureDefinition/Condition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="stage/grade"]

id:
  v: Condition.stage.id
path:
  v: Condition.stage.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.stage.extension
path:
  v: Condition.stage.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.stage.modifierExtension
path:
  v: Condition.stage.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Condition.stage.summary
path:
  v: Condition.stage.summary
short:
  v: 简单的摘要（特定疾病）。
definition:
  v: 对分期的简单摘要，如「第3期」。针对特定疾病的分期测定。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.stage.summary
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: con-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 描述病情、问题或诊断分期的代码（例如：癌症分期）。应填入所绑定值集中适合的代码，确定无适合的代码才可以使用其他值集的代码来表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage
    link: http://hl7.org/fhir/ValueSet/condition-stage
mapping:
  identity:
    v: sct-concept
  map:
    v: < 254291000 |Staging and scales|
mapping:
  identity:
    v: v2
  map:
    v: PRB-14
mapping:
  identity:
    v: rim
  map:
    v: .value

id:
  v: Condition.stage.assessment
path:
  v: Condition.stage.assessment
short:
  v: 正式的评估记录
definition:
  v: 分期评估所依据的证据之正式记录
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.stage.assessment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
    link: http://hl7.org/fhir/StructureDefinition/ClinicalImpression
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
    link: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
condition:
  v: con-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .self

id:
  v: Condition.stage.type
path:
  v: Condition.stage.type
short:
  v: 分期的种类
definition:
  v: 分期的种类，如病理分期或临床分期。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Condition.stage.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: extensible
  description:
    v: 病情、问题或诊断分期种类的代码（如临床或病理）；应填入所绑定值集中适合的代码，确定无适合的代码才可以使用其他值集的代码来表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage-type
    link: http://hl7.org/fhir/ValueSet/condition-stage-type
mapping:
  identity:
    v: rim
  map:
    v: ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="stage type"]

id:
  v: Condition.evidence
path:
  v: Condition.evidence
short:
  v: 支持的证据
definition:
  v: 作为病情、问题或诊断验证状态基础的支持证据／临床表现，如证实或反驳病情、问题或诊断的证据。
comment:
  v: 证据可以是一个简单的编码症状／临床表现的清单，或参考检验检查或者正式评估，或者两者都是。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.evidence
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: con-2
  severity:
    v: error
  human:
    v: evidence SHALL have code or details
  expression:
    v: code.exists() or detail.exists()
  xpath:
    v: exists(f:code) or exists(f:detail)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    link: http://hl7.org/fhir/StructureDefinition/Condition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]

id:
  v: Condition.evidence.id
path:
  v: Condition.evidence.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.evidence.extension
path:
  v: Condition.evidence.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Condition.evidence.modifierExtension
path:
  v: Condition.evidence.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Condition.evidence.code
path:
  v: Condition.evidence.code
short:
  v: 表现／症状
definition:
  v: 导致记录此病情、问题或诊断的表现或症状
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.evidence.code
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
condition:
  v: con-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 病情、问题或诊断的表现或症状之代码；应填入所绑定值集中适合的代码，确定无适合的代码才可以使用其他值集的代码来表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/manifestation-or-symptom
    link: http://hl7.org/fhir/ValueSet/manifestation-or-symptom
mapping:
  identity:
    v: workflow
  map:
    v: Event.reasonCode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: sct-concept
  map:
    v: < 404684003 |Clinical finding|
mapping:
  identity:
    v: rim
  map:
    v: [code="diagnosis"].value

id:
  v: Condition.evidence.detail
path:
  v: Condition.evidence.detail
short:
  v: 在其他地方找到的支持信息
definition:
  v: 其他相关信息的连接，包括病理报告。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.evidence.detail
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    link: http://hl7.org/fhir/StructureDefinition/Resource
condition:
  v: con-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: .self

id:
  v: Condition.note
path:
  v: Condition.note
short:
  v: 关于此Condition的附加信息
definition:
  v: 关于此Condition的附加信息。这是一个一般的注释／意见纪录，用于描述病情、问题或诊断、其诊断和预后。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Condition.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.note
mapping:
  identity:
    v: v2
  map:
    v: NTE child of PRB
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value

element:
  id:
    v: Condition
  path:
    v: Condition
  short:
    v: 有关病情、问题或诊断的详细信息
  definition:
    v: 一个临床病情、问题、诊断或其他事件、情况、或临床概念，已上升到需要关注的程度。
element:
  id:
    v: Condition.id
  path:
    v: Condition.id
  short:
    v: 不重复的ID用以识别储存在特定FHIR Server中的Condition纪录，通常又称为逻辑性ID。
  comment:
    v: 一个resource使用新增操作（create operation）提交给服务器时，此resource没有id，它的id在resource被创建后由服务器分配/指定。
element:
  id:
    v: Condition.extension
  path:
    v: Condition.extension
  short:
    v: 扩展字段
element:
  id:
    v: Condition.identifier
  path:
    v: Condition.identifier
  short:
    v: 此病情、问题或诊断的外部识别码
  definition:
    v: 由执行者或其他系统指定给此病情、问题或诊断的业务用识别码，即使此resource作更新及在服务器之间的传递，此识别码仍保持不变。
  comment:
    v: 这是一个业务识别码，不是一个resource识别码（详见讨论）。最好的做法是该识别码只出现在单个resource实例上，但是业务实务有可能会规定可以在多个resource实例中具有相同识别码—甚至可能具有不同的resource型例。例如：多个 「Patient（病人）」和 「Person（个人）」resource实例可能共用同一个社会保险号码。
element:
  id:
    v: Condition.clinicalStatus
  path:
    v: Condition.clinicalStatus
  short:
    v: active | recurrence | relapse | inactive | remission | resolved ，病情、问题或诊断的临床状态。
  min:
    v: 1
  must support:
    v: true
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: Condition.verificationStatus
  path:
    v: Condition.verificationStatus
  short:
    v: unconfirmed | provisional | differential | confirmed | refuted | entered-in-error ，支持或拒绝病情、问题或诊断的临床状态的验证状态。
  comment:
    v: verificationStatus不是必须的。例如：当病人在急诊室出现腹痛时，不可能出现验证状态。资料类型是CodeableConcept，因为verificationStatus涉及到一些临床判断，因此可能需要比所需的FHIR值集更多的特殊性。例如：SNOMED编码可能允许更多的特殊性。
  must support:
    v: true
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: Condition.category
  path:
    v: Condition.category
  short:
    v: problem-list-item | encounter-diagnosis ，指定病情、问题或诊断的类别。
element:
  id:
    v: Condition.severity
  path:
    v: Condition.severity
  short:
    v: 病情、问题或诊断的主观严重程度
  must support:
    v: true
  binding:
    strength:
      v: extensible
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-severity
      link: http://hl7.org/fhir/ValueSet/condition-severity
element:
  id:
    v: Condition.code
  path:
    v: Condition.code
  short:
    v: 病情、问题或诊断的识别
  must support:
    v: true
  binding:
    strength:
      v: example
    value set:
      v: http://hl7.org/fhir/ValueSet/condition-code
      link: http://hl7.org/fhir/ValueSet/condition-code
element:
  id:
    v: Condition.code.coding
  path:
    v: Condition.code.coding
  slicing:
    discriminator:
      type:
        v: pattern
      path:
        v: $this
    rules:
      v: open
  short:
    v: 由专门术语系统（terminology system）定义的代码。此资料项目为可扩充绑定预设国际标准值集，但实作者可视实务专案需求只绑定以下slices中的任一值集。目前未只限定绑定预设值集是因为尚无slice值集与预设国际标准值集的代码对应表，待后续有相对的代码对应表后将建议采用国际标准值集作为唯一绑定值集并针对该值集进行扩充与管理，以利进行跨国与跨系统之资料交换。
element:
  id:
    v: Condition.code.coding:absentOrUnknownProblem
  path:
    v: Condition.code.coding
  slice name:
    v: absentOrUnknownProblem
  short:
    v: 不存在的问题或未知问题的代码
  definition:
    v: 表示「absent problem」或「problems unknown」的代码
  comment:
    v: 代码可以在列举清单（enumerations）或代码清单（code lists）中非常随意地定义，直至有非常正式的定义，如SNOMED CT—更多信息见HL7 v3核心原则（Core Principles）。编码的排序是未定义的因而 **必须没有（SHALL NOT）** 被用来推断意义。一般来说，最多只有一个编码值（coding values）会被标记为UserSelected = true。
  requirements:
    v: 允许使用者在不知道识别码系统的情况下利用识别码
  min:
    v: 0
  max:
    v: 1
  must support:
    v: true
  binding:
    strength:
      v: required
    description:
      v: 应填入所绑定值集中的其中一个代码。
    value set:
      v: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
      link: http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-problems-uv-ips
element:
  id:
    v: Condition.code.coding:sct
  path:
    v: Condition.code.coding
  slice name:
    v: sct
  short:
    v: 此为SNOMED CT诊断代码，若机构已有购买相关授权，亦可使用。
  definition:
    v: 由专门术语系统（terminology system）所定义之代码的参照。
  comment:
    v: 代码可以在列举清单（enumerations）或代码清单（code lists）中非常随意地定义，直至有非常正式的定义，如SNOMED CT—更多信息见HL7 v3核心原则（Core Principles）。编码的排序是未定义的因而 **必须没有（SHALL NOT）** 被用来推断意义。一般来说，最多只有一个编码值（coding values）会被标记为UserSelected = true。
  requirements:
    v: 允许使用者在不知道识别码系统的情况下利用识别码
  min:
    v: 0
  max:
    v: 1
  must support:
    v: true
  binding:
    strength:
      v: required
    value set:
      v: https://whcater.github.io/serious-med-ig/ValueSet/condition-code-sct
      link: https://whcater.github.io/serious-med-ig/ValueSet/condition-code-sct
element:
  id:
    v: Condition.bodySite
  path:
    v: Condition.bodySite
  short:
    v: 如果相关请填写解剖位置
  comment:
    v: 只有在Condition.code中找到的代码未隐含此资料项目概念时才使用。如果使用案例（use-case）要求将BodySite作为一个单独的resource来处理（例如：识别和追踪），那么就使用标准的资料项目扩充方式来扩充bodySite。可以是一个摘要代码，也可以是对一个非常精确位置定义的参照，或者两者都是。
  must support:
    v: true
  binding:
    strength:
      v: extensible
    value set:
      v: http://hl7.org/fhir/ValueSet/body-site
      link: http://hl7.org/fhir/ValueSet/body-site
element:
  id:
    v: Condition.subject
  path:
    v: Condition.subject

v: 谁有此病情、问题或诊断？

code:
  v: Reference
target profile:
  v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
  link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
target profile:
  v: http://hl7.org/fhir/StructureDefinition/Group
  link: http://hl7.org/fhir/StructureDefinition/Group

v: true

id:
  v: Condition.encounter
path:
  v: Condition.encounter
short:
  v: 作为病情、问题或诊断纪录的一部分的就医（Encounter）纪录

id:
  v: Condition.onset[x]
path:
  v: Condition.onset[x]
short:
  v: 估计的或实际的日期、日期—时间或年龄。医师认为此病情、问题或诊断之推估或实际发生时间或日期时间等
must support:
  v: true

id:
  v: Condition.abatement[x]
path:
  v: Condition.abatement[x]
short:
  v: 何时解决/缓解
definition:
  v: 病情、问题或诊断缓解或开始缓解的日期或估计日期。因为与「缓解（remissio）」或 「解决（resolution）」相关的许多过多含义—病情、问题或诊断不会真正解决，但它们可以缓解，所以称为「缓解 （abatement）」，
must support:
  v: true

id:
  v: Condition.recorder
path:
  v: Condition.recorder
short:
  v: 谁记录此病情、问题或诊断
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson

id:
  v: Condition.asserter
path:
  v: Condition.asserter
short:
  v: 声称有此病情、问题或诊断的人
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-practitioner-role
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
must support:
  v: true

id:
  v: Condition.stage
path:
  v: Condition.stage
short:
  v: 分期（stage）／分级（grade），通常是正式的评估。
definition:
  v: 病情、问题或诊断的临床分期或分级，可能包括正式的严重程度评估。

id:
  v: Condition.stage.summary
path:
  v: Condition.stage.summary
short:
  v: 简单的摘要（特定疾病）。
definition:
  v: 对分期的简单摘要，如「第3期」。针对特定疾病的分期测定。
binding:
  strength:
    v: extensible
  description:
    v: 描述病情、问题或诊断分期的代码（例如：癌症分期）。应填入所绑定值集中适合的代码，确定无适合的代码才可以使用其他值集的代码来表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage
    link: http://hl7.org/fhir/ValueSet/condition-stage

id:
  v: Condition.stage.assessment
path:
  v: Condition.stage.assessment
short:
  v: 正式的评估记录
definition:
  v: 分期评估所依据的证据之正式记录

id:
  v: Condition.stage.type
path:
  v: Condition.stage.type
short:
  v: 分期的种类
definition:
  v: 分期的种类，如病理分期或临床分期。
binding:
  strength:
    v: extensible
  description:
    v: 病情、问题或诊断分期种类的代码（如临床或病理）；应填入所绑定值集中适合的代码，确定无适合的代码才可以使用其他值集的代码来表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-stage-type
    link: http://hl7.org/fhir/ValueSet/condition-stage-type

id:
  v: Condition.evidence
path:
  v: Condition.evidence
short:
  v: 支持的证据
definition:
  v: 作为病情、问题或诊断验证状态基础的支持证据／临床表现，如证实或反驳病情、问题或诊断的证据。
comment:
  v: 证据可以是一个简单的编码症状／临床表现的清单，或参考检验检查或者正式评估，或者两者都是。

id:
  v: Condition.evidence.code
path:
  v: Condition.evidence.code
short:
  v: 表现／症状
definition:
  v: 导致记录此病情、问题或诊断的表现或症状
binding:
  strength:
    v: extensible
  description:
    v: 病情、问题或诊断的表现或症状之代码；应填入所绑定值集中适合的代码，确定无适合的代码才可以使用其他值集的代码来表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/manifestation-or-symptom
    link: http://hl7.org/fhir/ValueSet/manifestation-or-symptom

id:
  v: Condition.evidence.detail
path:
  v: Condition.evidence.detail
short:
  v: 在其他地方找到的支持信息
definition:
  v: 其他相关信息的连接，包括病理报告。

id:
  v: Condition.note
path:
  v: Condition.note
short:
  v: 关于此Condition的附加信息
definition:
  v: 关于此Condition的附加信息。这是一个一般的注释／意见纪录，用于描述病情、问题或诊断、其诊断和预后。
must support:
  v: true