CDM/schemaDocuments/Healthcare/Medication/MedicationCore/MedicationAdministrationPer...

940 строки
35 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "MedicationAdministrationPerformer",
"extendsEntity": "CdsStandard",
"exhibitsTraits": [
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Medication Administration Performer"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The individual who was responsible for giving the medication to the patient."
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"entity": {
"entityReference": "MedicationAdministration",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"MedicationAdministration/(resolvedAttributes)/medicationAdministrationId"
]
}
]
},
"name": "medicationAdministration",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'MedicationAdministration'.",
"name": "medicationAdministrationId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Medication Administration"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique ID of Medication Administration."
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msemr_medicationadministration",
"displayName": "Medication Administration",
"description": "Unique ID of Medication Administration."
}
}
}
},
{
"name": "medicationAdministrationPerformerId",
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msemr_medicationadministrationperformerId"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Medication Administration Performer"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances"
]
]
}
}
]
}
],
"sourceName": "msemr_medicationadministrationperformerid",
"displayName": "Medication Administration Performer",
"description": "Unique identifier for entity instances"
},
{
"name": "name",
"purpose": "hasA",
"dataType": "name",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msemr_name"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The name of the custom entity."
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msemr_name",
"displayName": "Name",
"description": "The name of the custom entity.",
"maximumLength": 100
},
{
"entity": {
"entityReference": "Account",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Account/(resolvedAttributes)/accountId"
]
}
]
},
"name": "perfomerOnBehalfOf",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Account'.",
"name": "perfomerOnBehalfOfId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"On Behalf Of"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The organization the device or practitioner was acting on behalf of."
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msemr_perfomeronbehalfof",
"displayName": "On Behalf Of",
"description": "The organization the device or practitioner was acting on behalf of."
}
}
}
},
{
"name": "performerActorType",
"purpose": "hasA",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Practitioner",
"935000000",
"0"
],
[
"en",
"Patient",
"935000001",
"1"
],
[
"en",
"Related Person",
"935000002",
"2"
],
[
"en",
"Device",
"935000003",
"3"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msemr_PerformerActorType"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Performer Actor Type"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The device, practitioner, etc. who performed the action."
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msemr_performeractortype",
"displayName": "Performer Actor Type",
"description": "The device, practitioner, etc. who performed the action.",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'performerActorType_display' is added to the 'MedicationAdministrationPerformer' entity to provide the localized display text for the value of the listLookup attribute 'performerActorType'",
"name": "performerActorType_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true,
"isNullable": true
}
}
},
{
"entity": {
"entityReference": "Contact",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Contact/(resolvedAttributes)/contactId"
]
}
]
},
"name": "performerActorTypePatient",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Contact'.",
"name": "performerActorTypePatientId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Patient"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The patient who performed the action."
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msemr_performeractortypepatient",
"displayName": "Patient",
"description": "The patient who performed the action."
}
}
}
},
{
"entity": {
"entityReference": "Contact",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Contact/(resolvedAttributes)/contactId"
]
}
]
},
"name": "performerActorTypePractitioner",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Contact'.",
"name": "performerActorTypePractitionerId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Practitioner"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The practitioner who performed the action."
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msemr_performeractortypepractitioner",
"displayName": "Practitioner",
"description": "The practitioner who performed the action."
}
}
}
},
{
"entity": {
"entityReference": "Contact",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Contact/(resolvedAttributes)/contactId"
]
}
]
},
"name": "performerActorTypeRelatedPerson",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Contact'.",
"name": "performerActorTypeRelatedPersonId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Related Person"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The related person who performed the action."
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msemr_performeractortyperelatedperson",
"displayName": "Related Person",
"description": "The related person who performed the action."
}
}
}
},
{
"name": "stateCode",
"purpose": "representsStateWith",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Active",
"0",
"0"
],
[
"en",
"Inactive",
"1",
"1"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statecode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status of the Medication Administration Performer"
]
]
}
}
]
}
],
"sourceName": "statecode",
"displayName": "Status",
"description": "Status of the Medication Administration Performer",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'stateCode_display' is added to the 'MedicationAdministrationPerformer' entity to provide the localized display text for the value of the listLookup attribute 'stateCode'",
"name": "stateCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
},
{
"name": "statusCode",
"purpose": {
"purposeReference": "representsCorrelatedStatusWith",
"appliedTraits": [
{
"traitReference": "is.correlatedWith",
"arguments": [
"stateCode"
]
}
]
},
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}",
"entityShape": "listLookupCorrelatedValues",
"constantValues": [
[
"en",
"Active",
"1",
"0",
"0"
],
[
"en",
"Inactive",
"2",
"1",
"1"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statuscode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status Reason"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reason for the status of the Medication Administration Performer"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "statuscode",
"displayName": "Status Reason",
"description": "Reason for the status of the Medication Administration Performer",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'statusCode_display' is added to the 'MedicationAdministrationPerformer' entity to provide the localized display text for the value of the listLookup attribute 'statusCode'",
"name": "statusCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true,
"isNullable": true
}
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Healthcare/Medication/MedicationCore/MedicationAdministrationPerformer.1.0.cdm.json/MedicationAdministrationPerformer/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
],
"sourceName": "msemr_medicationadministrationperformer",
"displayName": "Medication Administration Performer",
"description": "The individual who was responsible for giving the medication to the patient."
}
],
"documentVersion": "1.0"
}