Skip to content

DetectedIssue Profile

Canonical../StructureDefinition/nexus-emr-core-detectedissue
Statusdraft (experimental) · 1.26.0
BaseDetectedIssue (constraint)
SourceFSH · JSON

Nexus EMR profile for DetectedIssue -- drug-drug and drug-allergy interaction findings raised during prescribing, and the prescriber's recorded override of them. First pass: models the override audit trail; the severity mapping is not yet settled.

Invariants

Every rule in force on a conforming instance. This profile rows are stated here; inherited rows come from the base resource and are listed so that a constraint named on an element is findable. Invariant keys elsewhere on this page link into this table.

Key Source Severity On Rule
detectedissue-mitigation-has-rationale this profile warning DetectedIssue A mitigation SHOULD carry rationale text in mitigation.action.text -- an override with no recorded reason leaves no medico-legal trail
mitigation.empty() or mitigation.all(action.text.exists() or action.coding.exists())
dom-2 inherited error DetectedIssue If the resource is contained in another resource, it SHALL NOT contain nested Resources
contained.contained.empty()
dom-3 inherited error DetectedIssue 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
dom-4 inherited error DetectedIssue 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 inherited error DetectedIssue If a resource is contained in another resource, it SHALL NOT have a security label
contained.meta.security.empty()
dom-6 inherited warning DetectedIssue A resource should have narrative for robust management
text.div.exists()
ele-1 inherited error DetectedIssue.meta All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error DetectedIssue.meta.extension Must have either extensions or value[x], not both
extension.exists() != value.exists()