description: This template represents the act of referencing another entry in the same CDA document instance. Its purpose is to remove the need to repeat the complete XML representation of the referred entry when relating one entry to another. This template can be used to reference many types of Act class derivations, such as encounters, observations, procedures etc., as it is often necessary when authoring CDA documents to repeatedly reference other Acts of these types. For example, in a Care Plan it is necessary to repeatedly relate Health Concerns, Goals, Activities and Outcomes.\n\nThe id is required and must be the same id as the entry/id it is referencing. The id cannot be a null value. Act/Code is set to nullFlavor=\"NP\" (Not Present). This means the value is not present in the message (in act/Code). package_name: hl7.cda.us.ccda derivation: constraint name: EntryReference type: http://hl7.org/cda/stds/core/StructureDefinition/Act elements: templateId: index: 0 slicing: rules: open discriminator: - {path: root, type: value} min: 1 slices: entry-reference: match: {root: 2.16.840.1.113883.10.20.22.4.122} schema: _required: true index: 1 elements: root: pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.122} index: 2 extension: {index: 3} required: [root] extensions: {} classCode: pattern: {type: Code, value: ACT} index: 4 moodCode: pattern: {type: Code, value: EVN} index: 5 id: short: The ID must equal another entry/id in the same document instance. Application Software must be responsible for resolving the identifier back to its original object and then rendering the information in the correct place in the containing section's narrative text. The ID cannot have Null value (e.g., nullFlavor is not allowed). index: 6 elements: nullFlavor: {index: 7} code: index: 8 elements: nullFlavor: pattern: {type: Code, value: NP} index: 9 required: [nullFlavor] text: short: SHOULD reference the portion of section narrative text corresponding to this entry index: 10 elements: reference: constraint: value-starts-octothorpe: {human: 'If reference/@value is present, it SHALL begin with a ''#'' and SHALL point to its corresponding narrative', source: 'http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference', severity: error, expression: value.exists() implies value.startsWith('#')} index: 11 statusCode: index: 12 elements: code: {short: MAY be set to "completed", index: 13} package_version: 3.0.0-ballot class: logical kind: logical url: http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference base: http://hl7.org/cda/stds/core/StructureDefinition/Act version: 3.0.0-ballot required: [id, statusCode, templateId]