{
"description": "A list is a curated collection of resources.",
"_filename": "List.json",
"package_name": "hl7.fhir.r4.id.core",
"date": "2019-11-01T09:29:23+11:00",
"derivation": "specialization",
"meta": {
"lastUpdated": "2022-01-10T01:52:54.824+00:00"
},
"publisher": "Health Level Seven International (FHIR Infrastructure)",
"fhirVersion": "4.0.1",
"name": "List",
"mapping": [ {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
}, {
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping",
"identity": "w5"
} ],
"abstract": false,
"type": "List",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "0.1.0",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
"valueString": "Base.Management"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "trial-use"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger": 1
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
"valueCode": "not-classified"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "fhir"
} ],
"status": "draft",
"id": "39baca3e-0d64-4038-a2d9-4b0368f4b959",
"kind": "resource",
"url": "https://fhir.kemkes.go.id/r4/StructureDefinition/List",
"version": "4.0.1",
"differential": {
"element": [ {
"id": "List",
"path": "List",
"alias": [ "Collection", "WorkingList", "Organizer" ],
"short": "A list is a curated collection of resources",
"mapping": [ {
"map": "Act[classCode,moodCode=EVN]",
"identity": "rim"
} ],
"constraint": [ {
"key": "lst-3",
"human": "An entry date can only be used if the mode of the list is \"working\"",
"xpath": "(f:mode/@value = 'working') or not(exists(f:entry/f:date))",
"source": "http://hl7.org/fhir/StructureDefinition/List",
"severity": "error",
"expression": "mode = 'working' or entry.date.empty()"
}, {
"key": "lst-2",
"human": "The deleted flag can only be used if the mode of the list is \"changes\"",
"xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))",
"source": "http://hl7.org/fhir/StructureDefinition/List",
"severity": "error",
"expression": "mode = 'changes' or entry.deleted.empty()"
}, {
"key": "lst-1",
"human": "A list can only have an emptyReason if it is empty",
"xpath": "not(exists(f:emptyReason) and exists(f:entry))",
"source": "http://hl7.org/fhir/StructureDefinition/List",
"severity": "error",
"expression": "emptyReason.empty() or entry.empty()"
} ],
"definition": "A list is a curated collection of resources."
}, {
"id": "List.identifier",
"path": "List.identifier",
"type": [ {
"code": "Identifier"
} ],
"short": "Business identifier",
"mapping": [ {
"map": "FiveWs.identifier",
"identity": "w5"
}, {
"map": ".id",
"identity": "rim"
} ],
"definition": "Identifier for the List assigned for business purposes outside the context of FHIR."
}, {
"path": "List.status",
"min": 1,
"definition": "Indicates the current state of this list.",
"isModifier": true,
"short": "current | retired | entered-in-error",
"mapping": [ {
"map": "FiveWs.status",
"identity": "w5"
}, {
"map": ".status[current=active;retired=obsolete;entered-in-error=nullified]",
"identity": "rim"
} ],
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/list-status|4.0.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "ListStatus"
} ],
"description": "The current state of the list."
},
"max": "1",
"id": "List.status",
"comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
"isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
"isSummary": true
}, {
"path": "List.mode",
"requirements": "Lists are used in various ways, and it must be known in what way it is safe to use them.",
"min": 1,
"definition": "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
"isModifier": true,
"short": "working | snapshot | changes",
"mapping": [ {
"map": "FiveWs.class",
"identity": "w5"
}, {
"map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
"identity": "rim"
} ],
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "ListMode"
} ],
"description": "The processing mode that applies to this list."
},
"max": "1",
"id": "List.mode",
"comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
"isModifierReason": "If set to \"changes\", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed",
"isSummary": true
}, {
"path": "List.title",
"requirements": "Allows customization beyond just the code identifying the kind of list.",
"definition": "A label for the list assigned by the author.",
"short": "Descriptive name for the list",
"mapping": [ {
"map": ".title",
"identity": "rim"
} ],
"type": [ {
"code": "string"
} ],
"max": "1",
"id": "List.title",
"example": [ {
"label": "General",
"valueString": "Dr. Jane's Patients"
} ],
"isSummary": true
}, {
"path": "List.code",
"requirements": "Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included.",
"definition": "This code defines the purpose of the list - why it was created.",
"short": "What the purpose of this list is",
"mapping": [ {
"map": "FiveWs.what[x]",
"identity": "w5"
}, {
"map": ".code",
"identity": "rim"
} ],
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "example",
"valueSet": "http://hl7.org/fhir/ValueSet/list-example-codes",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "ListPurpose"
} ],
"description": "What the purpose of a list is."
},
"max": "1",
"id": "List.code",
"comment": "If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.",
"isSummary": true
}, {
"path": "List.subject",
"requirements": "The primary purpose of listing the subject explicitly is to help with finding the right list.",
"definition": "The common subject (or patient) of the resources that are in the list if there is one.",
"short": "If all resources have the same subject",
"mapping": [ {
"map": "FiveWs.subject[x]",
"identity": "w5"
}, {
"map": ".participation[typeCode,
"identity": "rim"
}, {
"map": "FiveWs.subject",
"identity": "w5"
} ],
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Group", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Location" ]
} ],
"max": "1",
"id": "List.subject",
"comment": "Some purely arbitrary lists do not have a common subject, so this is optional.",
"isSummary": true
}, {
"id": "List.encounter",
"max": "1",
"path": "List.encounter",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ]
} ],
"short": "Context in which list created",
"mapping": [ {
"map": "FiveWs.context",
"identity": "w5"
}, {
"map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]",
"identity": "rim"
} ],
"definition": "The encounter that is the context in which this list was created."
}, {
"path": "List.date",
"requirements": "Identifies how current the list is which affects relevance.",
"definition": "The date that the list was prepared.",
"short": "When the list was prepared",
"mapping": [ {
"map": "FiveWs.recorded",
"identity": "w5"
}, {
"map": ".participation[typeCode,
"identity": "rim"
} ],
"type": [ {
"code": "dateTime"
} ],
"max": "1",
"id": "List.date",
"comment": "The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.",
"isSummary": true
}, {
"path": "List.source",
"requirements": "Allows follow-up as well as context.",
"definition": "The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.",
"short": "Who and/or what defined the list contents (aka Author)",
"mapping": [ {
"map": "FiveWs.author",
"identity": "w5"
}, {
"map": ".participation[typeCode,determinerCode=INST] or .participation[typeCode,determinerCode=INST]",
"identity": "rim"
} ],
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device" ]
} ],
"alias": [ "Author" ],
"max": "1",
"id": "List.source",
"comment": "The primary source is the entity that made the decisions what items are in the list. This may be software or user.",
"isSummary": true
}, {
"path": "List.orderedBy",
"requirements": "Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries.",
"definition": "What order applies to the items in the list.",
"short": "What order the list has",
"mapping": [ {
"map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1",
"identity": "rim"
} ],
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "preferred",
"valueSet": "http://hl7.org/fhir/ValueSet/list-order",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "ListOrder"
} ],
"description": "What order applies to the items in a list."
},
"max": "1",
"id": "List.orderedBy",
"comment": "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order."
}, {
"id": "List.note",
"path": "List.note",
"type": [ {
"code": "Annotation"
} ],
"short": "Comments about the list",
"mapping": [ {
"map": ".inboundRelationship[typeCode=SUBJ].act.text",
"identity": "rim"
} ],
"definition": "Comments that apply to the overall list."
}, {
"id": "List.entry",
"path": "List.entry",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Entries in the list",
"comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
"mapping": [ {
"map": ".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]",
"identity": "rim"
} ],
"condition": [ "lst-1" ],
"definition": "Entries in this list."
}, {
"path": "List.entry.flag",
"requirements": "This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list.",
"definition": "The flag allows the system constructing the list to indicate the role and significance of the item in the list.",
"short": "Status/Workflow information about this item",
"mapping": [ {
"map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
"identity": "rim"
} ],
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "example",
"valueSet": "http://hl7.org/fhir/ValueSet/list-item-flag",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "ListItemFlag"
} ],
"description": "Codes that provide further information about the reason and meaning of the item in the list."
},
"max": "1",
"id": "List.entry.flag",
"comment": "The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is \"changes\"."
}, {
"path": "List.entry.deleted",
"requirements": "The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as \"deleted\".",
"definition": "True if this item is marked as deleted in the list.",
"isModifier": true,
"short": "If this item is actually marked as deleted",
"mapping": [ {
"map": "added: .updateMode=(\"A\",\"AR\") retained: .updateMode=\"NC\" updated: .updateMode=\"R\" deleted: .updateMode=\"D\"",
"identity": "rim"
} ],
"type": [ {
"code": "boolean"
} ],
"meaningWhenMissing": "List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'",
"max": "1",
"id": "List.entry.deleted",
"condition": [ "lst-2" ],
"comment": "If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is \"changes\". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list.",
"isModifierReason": "If deleted is true, then the item included in the list isn't actually part of the list anymore"
}, {
"id": "List.entry.date",
"max": "1",
"path": "List.entry.date",
"type": [ {
"code": "dateTime"
} ],
"short": "When item added to list",
"mapping": [ {
"map": ".availabilityTime",
"identity": "rim"
} ],
"definition": "When this item was added to the list.",
"requirements": "The date may be significant for understanding the meaning of items in a working list."
}, {
"id": "List.entry.item",
"max": "1",
"min": 1,
"path": "List.entry.item",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
} ],
"short": "Actual entry",
"mapping": [ {
"map": ".target or .role or .role.entity",
"identity": "rim"
} ],
"definition": "A reference to the actual resource from which data was derived."
}, {
"path": "List.emptyReason",
"requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
"definition": "If the list is empty, why the list is empty.",
"short": "Why list is empty",
"mapping": [ {
"map": ".inboundRelationship[typeCode=SUBJ,code,
"identity": "rim"
} ],
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "preferred",
"valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "ListEmptyReason"
} ],
"description": "If a list is empty, why it is empty."
},
"max": "1",
"id": "List.emptyReason",
"condition": [ "lst-1" ],
"comment": "The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases."
} ]
},
"contact": [ {
"telecom": [ {
"value": "http://hl7.org/fhir",
"system": "url"
} ]
}, {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/fiwg/index.cfm",
"system": "url"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}