LK NEHR Sri Lanka Patient Summary (IPS based) Implementation Guide
0.1.0 - STU1

LK NEHR Sri Lanka Patient Summary (IPS based) Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: Medical History

Official URL: http://fhir.health.gov.lk/ips/StructureDefinition/medical-history | Version: 0.1.0
Active as of 2025-06-18 | Computable Name: MedicalHistory

Represents previous, pre-existing and new conditions for the patient.

Usages:

- Use this Profile: HIMS Transactional Bundle
- Refer to this Profile: List - Medical History
- Examples for this Profile: Condition/MedicalHistoryExample

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | ConditionUvIps | Documentation of a health problem of the patient Constraints: con-3, con-4, con-5
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
clinicalStatus | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | S | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Problem Type - IPS (preferred)
Additional Bindings | Purpose
Problem Type (LOINC) | candidate
severity | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Condition/DiagnosisSeverity (preferred)
Additional Bindings | Purpose
Problem Severity - IPS | candidate
code | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Conditions (extensible)
Additional Bindings | Purpose
Problems - SNOMED CT IPS Free Set | candidate
Absent or Unknown Problems - IPS | candidate
Additional Conditions | Extensible
subject | S Σ | 1..1 | Reference(Patient) | Who has the condition?
reference | S Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
encounter | Σ | 1..1 | Reference(Target Facility Encounter) | Encounter created as part of
onset[x] | S Σ | 0..1 |  | Estimated or actual date, date-time, or age
onsetDateTime |  |  | dateTime S |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
recordedDate | Σ | 1..1 | dateTime | Date record was first recorded
recorder | S Σ | 0..1 | Reference(Practitioner | Patient) | Who recorded the condition
asserter | S Σ | 0..1 | Reference(Practitioner | Patient) | Person who asserts this condition
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` From the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` From the FHIR Standard
Condition.category | preferred | ProblemTypeUvIps `http://hl7.org/fhir/uv/ips/ValueSet/problem-type-uv-ips`
Condition.severity | preferred | Condition/DiagnosisSeverity `http://hl7.org/fhir/ValueSet/condition-severity` From the FHIR Standard
Condition.code | extensible | VSMedicalConditions `http://fhir.health.gov.lk/ips/ValueSet/vs-medical-conditions` From this IG

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : 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() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | 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-4 | error | Condition | 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-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from ConditionUvIps

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition |  |  | ConditionUvIps |
verificationStatus | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text
category |  | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text
code |  | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Conditions (extensible)
Additional Bindings | Purpose
Additional Conditions | Extensible
subject |  | 1..1 | Reference(Patient) | Who has the condition?
encounter |  | 1..1 | Reference(Target Facility Encounter) | Encounter created as part of
recordedDate |  | 1..1 | dateTime | Date record was first recorded
recorder | S | 0..1 | Reference(Practitioner | Patient) | Who recorded the condition
asserter | S | 0..1 | Reference(Practitioner | Patient) | Person who asserts this condition
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
Condition.code | extensible | VSMedicalConditions `http://fhir.health.gov.lk/ips/ValueSet/vs-medical-conditions` From this IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | ConditionUvIps | Documentation of a health problem of the patient Constraints: con-3, con-4, con-5
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
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 Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External Ids for this condition
clinicalStatus | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | S | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Problem Type - IPS (preferred)
Additional Bindings | Purpose
Problem Type (LOINC) | candidate
severity | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Condition/DiagnosisSeverity (preferred)
Additional Bindings | Purpose
Problem Severity - IPS | candidate
code | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Conditions (extensible)
Additional Bindings | Purpose
Problems - SNOMED CT IPS Free Set | candidate
Absent or Unknown Problems - IPS | candidate
Additional Conditions | Extensible
bodySite |  | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: SNOMEDCTBodyStructures (example)
subject | S Σ | 1..1 | Reference(Patient) | Who has the condition?
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 1..1 | Reference(Target Facility Encounter) | Encounter created as part of
onset[x] | S Σ | 0..1 |  | Estimated or actual date, date-time, or age
onsetDateTime |  |  | dateTime S |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
abatement[x] | C | 0..1 |  | When in resolution/remission
abatementDateTime |  |  | dateTime |
abatementAge |  |  | Age |
abatementPeriod |  |  | Period |
abatementRange |  |  | Range |
abatementString |  |  | string |
recordedDate | Σ | 1..1 | dateTime | Date record was first recorded
recorder | S Σ | 0..1 | Reference(Practitioner | Patient) | Who recorded the condition
asserter | S Σ | 0..1 | Reference(Practitioner | Patient) | Person who asserts this condition
stage | C | 0..* | BackboneElement | Stage/grade, usually assessed formally Constraints: con-1
id |  | 0..1 | string | 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
summary | C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
assessment | C | 0..* | Reference(ClinicalImpression | DiagnosticReport | Observation) | Formal record of assessment
type |  | 0..1 | CodeableConcept | Kind of staging Binding: ConditionStageType (example): Codes describing the kind of condition staging (e.g. clinical or pathological).
evidence | C | 0..* | BackboneElement | Supporting evidence Constraints: con-2
id |  | 0..1 | string | 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
code | Σ C | 0..* | CodeableConcept | Manifestation/symptom Binding: ManifestationAndSymptomCodes (example): Codes that describe the manifestation or symptoms of a condition.
detail | Σ C | 0..* | Reference(Resource) | Supporting information found elsewhere
note |  | 0..* | Annotation | Additional information about the Condition
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` From the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` From the FHIR Standard
Condition.category | preferred | ProblemTypeUvIps `http://hl7.org/fhir/uv/ips/ValueSet/problem-type-uv-ips`
Condition.severity | preferred | Condition/DiagnosisSeverity `http://hl7.org/fhir/ValueSet/condition-severity` From the FHIR Standard
Condition.code | extensible | VSMedicalConditions `http://fhir.health.gov.lk/ips/ValueSet/vs-medical-conditions` From this IG
Condition.bodySite | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` From the FHIR Standard
Condition.subject.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types` From the FHIR Standard
Condition.stage.summary | example | ConditionStage `http://hl7.org/fhir/ValueSet/condition-stage` From the FHIR Standard
Condition.stage.type | example | ConditionStageType `http://hl7.org/fhir/ValueSet/condition-stage-type` From the FHIR Standard
Condition.evidence.code | example | ManifestationAndSymptomCodes `http://hl7.org/fhir/ValueSet/manifestation-or-symptom` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-1 | error | Condition.stage | Stage SHALL have summary or assessment : summary.exists() or assessment.exists() |
con-2 | error | Condition.evidence | evidence SHALL have code or details : code.exists() or detail.exists() |
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : 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() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | 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-4 | error | Condition | 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-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from ConditionUvIps

Summary

Mandatory: 2 elements
Must-Support: 3 elements

Structures

This structure refers to these other structures:

- Patient (http://fhir.health.gov.lk/ips/StructureDefinition/ips-patient)
- Target Facility Encounter (http://fhir.health.gov.lk/ips/StructureDefinition/target-facility-encounter)
- Practitioner (http://fhir.health.gov.lk/ips/StructureDefinition/practitioner)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | ConditionUvIps | Documentation of a health problem of the patient Constraints: con-3, con-4, con-5
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
clinicalStatus | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | S | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Problem Type - IPS (preferred)
Additional Bindings | Purpose
Problem Type (LOINC) | candidate
severity | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Condition/DiagnosisSeverity (preferred)
Additional Bindings | Purpose
Problem Severity - IPS | candidate
code | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Conditions (extensible)
Additional Bindings | Purpose
Problems - SNOMED CT IPS Free Set | candidate
Absent or Unknown Problems - IPS | candidate
Additional Conditions | Extensible
subject | S Σ | 1..1 | Reference(Patient) | Who has the condition?
reference | S Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
encounter | Σ | 1..1 | Reference(Target Facility Encounter) | Encounter created as part of
onset[x] | S Σ | 0..1 |  | Estimated or actual date, date-time, or age
onsetDateTime |  |  | dateTime S |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
recordedDate | Σ | 1..1 | dateTime | Date record was first recorded
recorder | S Σ | 0..1 | Reference(Practitioner | Patient) | Who recorded the condition
asserter | S Σ | 0..1 | Reference(Practitioner | Patient) | Person who asserts this condition
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` From the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` From the FHIR Standard
Condition.category | preferred | ProblemTypeUvIps `http://hl7.org/fhir/uv/ips/ValueSet/problem-type-uv-ips`
Condition.severity | preferred | Condition/DiagnosisSeverity `http://hl7.org/fhir/ValueSet/condition-severity` From the FHIR Standard
Condition.code | extensible | VSMedicalConditions `http://fhir.health.gov.lk/ips/ValueSet/vs-medical-conditions` From this IG

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : 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() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | 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-4 | error | Condition | 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-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

Differential View

This structure is derived from ConditionUvIps

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition |  |  | ConditionUvIps |
verificationStatus | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text
category |  | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text
code |  | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Conditions (extensible)
Additional Bindings | Purpose
Additional Conditions | Extensible
subject |  | 1..1 | Reference(Patient) | Who has the condition?
encounter |  | 1..1 | Reference(Target Facility Encounter) | Encounter created as part of
recordedDate |  | 1..1 | dateTime | Date record was first recorded
recorder | S | 0..1 | Reference(Practitioner | Patient) | Who recorded the condition
asserter | S | 0..1 | Reference(Practitioner | Patient) | Person who asserts this condition
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
Condition.code | extensible | VSMedicalConditions `http://fhir.health.gov.lk/ips/ValueSet/vs-medical-conditions` From this IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | ConditionUvIps | Documentation of a health problem of the patient Constraints: con-3, con-4, con-5
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
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 Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External Ids for this condition
clinicalStatus | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | S | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Problem Type - IPS (preferred)
Additional Bindings | Purpose
Problem Type (LOINC) | candidate
severity | S | 0..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Condition/DiagnosisSeverity (preferred)
Additional Bindings | Purpose
Problem Severity - IPS | candidate
code | S | 1..1 | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: Conditions (extensible)
Additional Bindings | Purpose
Problems - SNOMED CT IPS Free Set | candidate
Absent or Unknown Problems - IPS | candidate
Additional Conditions | Extensible
bodySite |  | 0..* | CodeableConceptIPS | Concept - reference to a terminology or just text Binding: SNOMEDCTBodyStructures (example)
subject | S Σ | 1..1 | Reference(Patient) | Who has the condition?
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 1..1 | Reference(Target Facility Encounter) | Encounter created as part of
onset[x] | S Σ | 0..1 |  | Estimated or actual date, date-time, or age
onsetDateTime |  |  | dateTime S |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
abatement[x] | C | 0..1 |  | When in resolution/remission
abatementDateTime |  |  | dateTime |
abatementAge |  |  | Age |
abatementPeriod |  |  | Period |
abatementRange |  |  | Range |
abatementString |  |  | string |
recordedDate | Σ | 1..1 | dateTime | Date record was first recorded
recorder | S Σ | 0..1 | Reference(Practitioner | Patient) | Who recorded the condition
asserter | S Σ | 0..1 | Reference(Practitioner | Patient) | Person who asserts this condition
stage | C | 0..* | BackboneElement | Stage/grade, usually assessed formally Constraints: con-1
id |  | 0..1 | string | 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
summary | C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
assessment | C | 0..* | Reference(ClinicalImpression | DiagnosticReport | Observation) | Formal record of assessment
type |  | 0..1 | CodeableConcept | Kind of staging Binding: ConditionStageType (example): Codes describing the kind of condition staging (e.g. clinical or pathological).
evidence | C | 0..* | BackboneElement | Supporting evidence Constraints: con-2
id |  | 0..1 | string | 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
code | Σ C | 0..* | CodeableConcept | Manifestation/symptom Binding: ManifestationAndSymptomCodes (example): Codes that describe the manifestation or symptoms of a condition.
detail | Σ C | 0..* | Reference(Resource) | Supporting information found elsewhere
note |  | 0..* | Annotation | Additional information about the Condition
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Condition.language | preferred | CommonLanguages `http://hl7.org/fhir/ValueSet/languages` From the FHIR Standard
Additional Bindings | Purpose
AllLanguages | Max Binding
Condition.clinicalStatus | required | ConditionClinicalStatusCodes `http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1` From the FHIR Standard
Condition.verificationStatus | required | ConditionVerificationStatus `http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1` From the FHIR Standard
Condition.category | preferred | ProblemTypeUvIps `http://hl7.org/fhir/uv/ips/ValueSet/problem-type-uv-ips`
Condition.severity | preferred | Condition/DiagnosisSeverity `http://hl7.org/fhir/ValueSet/condition-severity` From the FHIR Standard
Condition.code | extensible | VSMedicalConditions `http://fhir.health.gov.lk/ips/ValueSet/vs-medical-conditions` From this IG
Condition.bodySite | example | SNOMEDCTBodyStructures `http://hl7.org/fhir/ValueSet/body-site` From the FHIR Standard
Condition.subject.type | extensible | ResourceType `http://hl7.org/fhir/ValueSet/resource-types` From the FHIR Standard
Condition.stage.summary | example | ConditionStage `http://hl7.org/fhir/ValueSet/condition-stage` From the FHIR Standard
Condition.stage.type | example | ConditionStageType `http://hl7.org/fhir/ValueSet/condition-stage-type` From the FHIR Standard
Condition.evidence.code | example | ManifestationAndSymptomCodes `http://hl7.org/fhir/ValueSet/manifestation-or-symptom` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
con-1 | error | Condition.stage | Stage SHALL have summary or assessment : summary.exists() or assessment.exists() |
con-2 | error | Condition.evidence | evidence SHALL have code or details : code.exists() or detail.exists() |
con-3 | best practice | Condition | Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item : 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() |
con-4 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission : abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists() |
con-5 | error | Condition | Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error : verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty() |
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Condition | 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-4 | error | Condition | 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-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Condition | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from ConditionUvIps

Summary

Mandatory: 2 elements
Must-Support: 3 elements

Structures

This structure refers to these other structures:

- Patient (http://fhir.health.gov.lk/ips/StructureDefinition/ips-patient)
- Target Facility Encounter (http://fhir.health.gov.lk/ips/StructureDefinition/target-facility-encounter)
- Practitioner (http://fhir.health.gov.lk/ips/StructureDefinition/practitioner)

Other representations of profile: CSV, Excel, Schematron