@synanetics/constants
v5.4.0
Published
A collection of constants.
Downloads
2,271
Maintainers
Keywords
Readme
@synanetics/constants
A collection of frequently used constants.
Example Usage
const {
FhirCodeSystem,
FhirIdentifierSystem,
FhirValueSetOperationOutcomeSTU3,
HL7CodeSystem,
HL7HttpHeader,
InterweaveFhirSystem,
InterweaveHttpHeader,
InterweaveAccessReason,
InterweaveUserRole,
InterweaveResourceProfileSTU3,
HL7ResourceProfileCareConnectSTU3,
HL7ExtensionDefinition,
InterweaveExtensionDefinition,
HL7FhirSystem,
HL7ResourceProfile,
HL7ResourceProfileUKCore,
HL7ExtensionDefinitionCareConnect,
HL7ExtensionDefinitionUKCore,
NHSWalesFhir,
NHSWalesCodeSystem,
NHSWalesExtension,
BCUHBCodeSystem,
BCUHBExtension,
} = require('@synanetics/constants');
// or
import {
FhirCodeSystem,
FhirIdentifierSystem,
FhirValueSetOperationOutcomeSTU3,
HL7CodeSystem,
HL7HttpHeader,
InterweaveFhirSystem,
InterweaveHttpHeader,
InterweaveAccessReason,
InterweaveUserRole,
InterweaveResourceProfileSTU3,
HL7ResourceProfileCareConnectSTU3,
HL7ExtensionDefinition,
InterweaveExtensionDefinition,
HL7FhirSystem,
HL7ResourceProfile,
HL7ResourceProfileUKCore,
HL7ExtensionDefinitionCareConnect,
HL7ExtensionDefinitionUKCore,
NHSWalesFhir,
NHSWalesCodeSystem,
NHSWalesExtension,
BCUHBCodeSystem,
BCUHBExtension,
} from '@synanetics/constants';
Constants
The package provides the following definitions:
HL7HttpHeader
HL7 defined extension header to prevent the creation of duplicate resources
| Constant | | --------------------------- | | HL7HttpHeader.IF_NONE_EXIST |
HL7ResourceProfile
HL7 Resource Profile URLs for use in resource meta.profile
| Constant | | ------------------------------ | | HL7ResourceProfile.APPOINTMENT | | HL7ResourceProfile.SCHEDULE | | HL7ResourceProfile.SLOT |
HL7ExtensionDefinitionUKCore
HL7 UK Core Extensions for resources
| Constants | | ----------------------------------------------| | HL7ExtensionDefinitionUKCore.CONTACT_RANK | | HL7ExtensionDefinitionUKCore.DELIVERY_CHANNEL |
HL7ResourceProfileUKCore
HL7 UK Core Resource Profile URLs for use in resource meta.profile
| Constant | | ------------------------------------ | | HL7ResourceProfileUKCore.APPOINTMENT | | HL7ResourceProfileUKCore.ENCOUNTER | | HL7ResourceProfileUKCore.SCHEDULE | | HL7ResourceProfileUKCore.SLOT |
HL7ResourceProfileCareConnectSTU3
Care Connect Resource Profile URLs for use in STU3 resource meta.profile
| Constant | | --------------------------------------------------------------- | | HL7ResourceProfileCareConnectSTU3.ALLERGY_INTOLERANCE | | HL7ResourceProfileCareConnectSTU3.APPOINTMENT | | HL7ResourceProfileCareConnectSTU3.CARE_PLAN | | HL7ResourceProfileCareConnectSTU3.CARE_TEAM | | HL7ResourceProfileCareConnectSTU3.COMMUNICATION | | HL7ResourceProfileCareConnectSTU3.COMPOSITION | | HL7ResourceProfileCareConnectSTU3.CONDITION | | HL7ResourceProfileCareConnectSTU3.CONDITION_PROBLEM_HEADER | | HL7ResourceProfileCareConnectSTU3.CONSENT | | HL7ResourceProfileCareConnectSTU3.CONTRACT | | HL7ResourceProfileCareConnectSTU3.DIAGNOSTIC_REPORT | | HL7ResourceProfileCareConnectSTU3.DOCUMENT_REFERENCE | | HL7ResourceProfileCareConnectSTU3.ENCOUNTER | | HL7ResourceProfileCareConnectSTU3.EPISODE_OF_CARE | | HL7ResourceProfileCareConnectSTU3.FAMILY_MEMBER_HISTORY | | HL7ResourceProfileCareConnectSTU3.FLAG | | HL7ResourceProfileCareConnectSTU3.FLAG_MEDICATION | | HL7ResourceProfileCareConnectSTU3.HEALTHCARE_SERVICE | | HL7ResourceProfileCareConnectSTU3.IMMUNIZATION | | HL7ResourceProfileCareConnectSTU3.LIST | | HL7ResourceProfileCareConnectSTU3.LIST_PROBLEM | | HL7ResourceProfileCareConnectSTU3.LOCATION | | HL7ResourceProfileCareConnectSTU3.MEDICATION | | HL7ResourceProfileCareConnectSTU3.MEDICATION_ADMINISTRATION | | HL7ResourceProfileCareConnectSTU3.MEDICATION_DISPENSE | | HL7ResourceProfileCareConnectSTU3.MEDICATION_REQUEST | | HL7ResourceProfileCareConnectSTU3.MEDICATION_STATEMENT | | HL7ResourceProfileCareConnectSTU3.OBSERVATION | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_ACVPU | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_AVCPU | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_BLOOD_PRESSURE | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_BODY_TEMPERATURE | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_HEART_RATE | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_INSPIRED_OXYGEN | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_OXYGEN_SATURATION | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_RESPIRATORY_RATE | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_SUBSCORE | | HL7ResourceProfileCareConnectSTU3.OBSERVATION_VITAL_SIGNS | | HL7ResourceProfileCareConnectSTU3.ORGANIZATION | | HL7ResourceProfileCareConnectSTU3.PATIENT | | HL7ResourceProfileCareConnectSTU3.PRACTITIONER | | HL7ResourceProfileCareConnectSTU3.PRACTITIONER_ROLE | | HL7ResourceProfileCareConnectSTU3.PROCEDURE | | HL7ResourceProfileCareConnectSTU3.PROCEDURE_REQUEST | | HL7ResourceProfileCareConnectSTU3.QUANTITY | | HL7ResourceProfileCareConnectSTU3.QUESTIONNAIRE | | HL7ResourceProfileCareConnectSTU3.QUESTIONNAIRE_RESPONSE | | HL7ResourceProfileCareConnectSTU3.REFERRAL_REQUEST | | HL7ResourceProfileCareConnectSTU3.RELATED_PERSON | | HL7ResourceProfileCareConnectSTU3.RESEARCH_STUDY | | HL7ResourceProfileCareConnectSTU3.RISK_ASSESSMENT | | HL7ResourceProfileCareConnectSTU3.SCHEDULE | | HL7ResourceProfileCareConnectSTU3.SLOT | | HL7ResourceProfileCareConnectSTU3.SPECIMEN | | HL7ResourceProfileCareConnectSTU3.TASK |
HL7ExtensionDefinition
HL7 Extension URLs
| Constant | | --------------------------------------------------------------------------- | | HL7ExtensionDefinition.IMMUNIZATION_NOT_GIVEN | | HL7ExtensionDefinition.IMMUNIZATION_VACCINATION_PROTOCOL_DESCRIPTION | | HL7ExtensionDefinition.IMMUNIZATION_VACCINATION_PROTOCOL_DOSE_STATUS | | HL7ExtensionDefinition.IMMUNIZATION_VACCINATION_PROTOCOL_DOSE_STATUS_REASON | | HL7ExtensionDefinition.MEDICATION_ADMINISTRATION_NOT_GIVEN | | HL7ExtensionDefinition.MEDICATION_ADMINISTRATION_PERFORMER_ON_BEHALF_OF | | HL7ExtensionDefinition.MEDICATION_ADMINISTRATION_STATUS | | HL7ExtensionDefinition.MEDICATION_STATEMENT_STATUS | | HL7ExtensionDefinition.MEDICATION_STATEMENT_TAKEN | | HL7ExtensionDefinition.OBSERVATION_INTERFERED_BY | | HL7ExtensionDefinition.OBSERVATION_QUALIFIED_BY | | HL7ExtensionDefinition.OBSERVATION_REPLACES | | HL7ExtensionDefinition.OBSERVATION_SEQUEL_TO | | HL7ExtensionDefinition.RENDERED_VALUE |
HL7ExtensionDefinitionCareConnect
Care Connect Extension URLs
| Constant | | -------------------------------------------------- | | HL7ExtensionDefinitionCareConnect.DELIVERY_CHANNEL |
HL7CodeSystem
HL7 defined code system url for use in FhirResource.extension
| Constant | | ---------------------------------------------- | | HL7CodeSystem.ACT_CODE | | HL7CodeSystem.ALLERGY_INTOLERANCE_CLINICAL | | HL7CodeSystem.ALLERGY_INTOLERANCE_VERIFICATION | | HL7CodeSystem.APPOINTMENT_REASON | | HL7CodeSystem.ROLE_CODE | | HL7CodeSystem.PARTICIPANT_TYPE | | HL7CodeSystem.OBSERVATION_CATEGORY |
HL7FhirSystem
HL7 defined system url for use as system
| Constant | | ----------------------------------- | | HL7FhirSystem.ACT_CODE | | HL7FhirSystem.NAMING | | HL7FhirSystem.OBSERVATION_CATEGORY | | HL7FhirSystem.ORGANIZATION_TYPE | | HL7FhirSystem.PARTICIPATION_TYPE | | HL7FhirSystem.PARTICIPATION_TYPE_V3 | | HL7FhirSystem.REQUEST_INTENT |
InterweaveHttpHeader
| Constant | Description | | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | InterweaveHttpHeader.DATA_PROVIDER_WAIT_TIME | Custom Interweave FHIR header presenting a the time for which a query should wait before timing out when searching the FHIRStore | | InterweaveHttpHeader.RESOURCE_EXPIRY_TIMESTAMP | Custom Interweave FHIR header presenting a future date in ISO_8601 format after which a resource will be expunged from a FHIRStore - passed when creating or updating a resource | | InterweaveHttpHeader.RESOURCE_EXPIRY_TTL | Custom Interweave FHIR header presenting a duration in ISO_8601 format after which a resource will be expunged from a FHIRStore - passed when creating or updating a resource | | InterweaveHttpHeader.RETENTION_ERASE_TIMESTAMP | Custom Interweave FHIR header presenting a future date in ISO_8601 format after which retention history will be expunged from a FHIRStore - passed when deleting a resource | | InterweaveHttpHeader.RETENTION_ERASE_TTL | Custom Interweave FHIR header presenting a duration in ISO_8601 format after which retention history will be expunged from a FHIRStore - passed when deleting a resource |
InterweaveFhirSystem
| Constant | Description | | ----------------------------------------------------- | -------------------------------------------------- | | InterweaveFhirSystem.ACT_CODE | Encounter class code system | | InterweaveFhirSystem.ORGANIZATION_TYPE | Organization type code system | | InterweaveFhirSystem.PARTICIPANT_ID | Organization Participant Id based system | | InterweaveFhirSystem.PROVENANCE_TAG | Provenance system for meta tag | | InterweaveFhirSystem.REFRESH_TAG | Tag system to denote a last refresh for a resource | | InterweaveFhirSystem.SOURCE_TAG | Source system for meta tag | | InterweaveFhirSystem.SUBSCRIPTION_PATIENT_ID | Subscription Patient Id based system | | InterweaveFhirSystem.TYPE_TAG | Tag system to denote a type of resource | | InterweaveFhirSystem.LOCAL_IDENTIFIER_APPOINTMENT | Identifier system for local system use | | InterweaveFhirSystem.LOCAL_IDENTIFIER_ENCOUNTER | Identifier system for local system use | | InterweaveFhirSystem.LOCAL_IDENTIFIER_PATIENT | Identifier system for local system use | | InterweaveFhirSystem.LOCAL_IDENTIFIER_SCHEDULE | Identifier system for local system use | | InterweaveFhirSystem.LOCAL_IDENTIFIER_SERVICE_REQUEST | Identifier system for local system use | | InterweaveFhirSystem.LOCAL_IDENTIFIER_SLOT | Identifier system for local system use |
InterweaveResourceProfileSTU3
Interweave defined structure definition url for use as meta.profile
| Constant | | ------------------------------------------------- | | InterweaveResourceProfileSTU3.ALLERGY_INTOLERANCE | | InterweaveResourceProfileSTU3.APPOINTMENT | | InterweaveResourceProfileSTU3.CARE_PLAN | | InterweaveResourceProfileSTU3.DEVICE_REQUEST_SOCIALCARE | | InterweaveResourceProfileSTU3.ENCOUNTER | | InterweaveResourceProfileSTU3.EPISODE_OF_CARE | | InterweaveResourceProfileSTU3.OBSERVATION | | InterweaveResourceProfileSTU3.OBSERVATION_BLOODPRESSURE | | InterweaveResourceProfileSTU3.OBSERVATION_HEIGHT | | InterweaveResourceProfileSTU3.OBSERVATION_PREGNANCY_EDD | | InterweaveResourceProfileSTU3.OBSERVATION_WEIGHT | | InterweaveResourceProfileSTU3.ORGANIZATION | | InterweaveResourceProfileSTU3.PRACTITIONER | | InterweaveResourceProfileSTU3.PROCEDURE | | InterweaveResourceProfileSTU3.QUESTIONNAIRE_RESPONSE | | InterweaveResourceProfileSTU3.REFERRAL_REQUEST | | InterweaveResourceProfileSTU3.RELATED_PERSON |
InterweaveExtensionDefinition
Interweave defined structure definition url for use in extensions
| Constant | | ---------------------------------------------------- | | InterweaveExtensionDefinition.ENCOUNTER_SERVICE_TYPE | | InterweaveExtensionDefinition.SCHEDULE_TOTAL_SLOTS |
InterweaveAccessReason
Descriptive enum of access reasons and related values.
| Constant | Value | | ---------------------------------------------------- | ----- | | InterweaveAccessReason.DIRECT_CARE_EMERGENCY | 1.1 | | InterweaveAccessReason.DIRECT_CARE_NON_EMERGENCY | 1.2 | | InterweaveAccessReason.INDIRECT_CARE_CONSENT_PATIENT |'2 | | InterweaveAccessReason.INDIRECT_CARE_NO_PATIENT | 3 | | InterweaveAccessReason.ANALYTICS_PSEUDONYMISED | 4 | | InterweaveAccessReason.ADMINISTRATION | 5 | | InterweaveAccessReason.PDS_TRACE | 6 | | InterweaveAccessReason.CLINICAL_SAFETY_TESTING_DATA | 7.1 | | InterweaveAccessReason.CLINICAL_SAFETY_TESTING_UI | 7.2 |
InterweaveUserRole
Descriptive enum of user roles and related values.
| Constant | Value | | ------------------------------------------- | ----- | | InterweaveUserRole.NATIONAL_ROLE4 | 1 | | InterweaveUserRole.SOCIAL_CARE_PROFESSIONAL | 2 | | InterweaveUserRole.CITIZEN | 3 | | InterweaveUserRole.SYSTEM_OR_ROBOT | 4 | | InterweaveUserRole.ADMINISTRATOR | 5 | | InterweaveUserRole.AUDITOR | 6 | | InterweaveUserRole.AUTHORISED_CARER | 7 | | InterweaveUserRole.NATIONAL_ROLE1 | 8 | | InterweaveUserRole.NATIONAL_ROLE2 | 9 | | InterweaveUserRole.NATIONAL_ROLE3 | 10 | | InterweaveUserRole.NATIONAL_ROLE3_PLUS | 11 | | InterweaveUserRole.NATIONAL_ROLE0 | 12 |
FhirCodeSystem
| Constant | Description | | --------------------------------------- | ------------------------------------------------ | | FhirCodeSystem.SNOMED_CT | For the SNOMED CT code system | | FhirCodeSystem.OPERATION_OUTCOME | For the operation outcome code system | | FhirCodeSystem.LOINC_ORG | For the loinc.org code system | | FhirCodeSystem.SERVICE_REQUEST_CATEGORY | For ServiceRequest category code system | | FhirCodeSystem.CONSENT_CATEGORY_BARS | For Consent category code system on BaRS message |
FhirIdentifierSystem
| Constant | Description | | -------------------------------- | ------------------------------------------------------------------- | | FhirIdentifierSystem.GMC_NUMBER | URL for the GMC (General Medical Council) number identifier system | | FhirIdentifierSystem.NHS_NUMBER | URL for the NHS number identifier system | | FhirIdentifierSystem.ODS_CODE | URL for the Organisation ODS code identifier system | | FhirIdentifierSystem.SDS_USER_ID | URL for the SDS (user account) identifier system |
FhirValueSetOperationOutcomeSTU3
Operation outcome codes for use in STU3
| Constant | | --------------------------------------------------------------- | | FhirValueSetOperationOutcomeSTU3.MSG_AUTH_REQUIRED | | FhirValueSetOperationOutcomeSTU3.MSG_BAD_FORMAT | | FhirValueSetOperationOutcomeSTU3.MSG_BAD_SYNTAX | | FhirValueSetOperationOutcomeSTU3.MSG_CANT_PARSE_CONTENT | | FhirValueSetOperationOutcomeSTU3.MSG_CANT_PARSE_ROOT | | FhirValueSetOperationOutcomeSTU3.MSG_CREATED | | FhirValueSetOperationOutcomeSTU3.MSG_DATE_FORMAT | | FhirValueSetOperationOutcomeSTU3.MSG_DELETED | | FhirValueSetOperationOutcomeSTU3.MSG_DELETED_DONE | | FhirValueSetOperationOutcomeSTU3.MSG_DELETED_ID | | FhirValueSetOperationOutcomeSTU3.MSG_DUPLICATE_ID | | FhirValueSetOperationOutcomeSTU3.MSG_ERROR_PARSING | | FhirValueSetOperationOutcomeSTU3.MSG_ID_INVALID | | FhirValueSetOperationOutcomeSTU3.MSG_ID_TOO_LONG | | FhirValueSetOperationOutcomeSTU3.MSG_INVALID_ID | | FhirValueSetOperationOutcomeSTU3.MSG_JSON_OBJECT | | FhirValueSetOperationOutcomeSTU3.MSG_LOCAL_FAIL | | FhirValueSetOperationOutcomeSTU3.MSG_NO_MATCH | | FhirValueSetOperationOutcomeSTU3.MSG_NO_EXIST | | FhirValueSetOperationOutcomeSTU3.MSG_NO_MODULE | | FhirValueSetOperationOutcomeSTU3.MSG_NO_SUMMARY | | FhirValueSetOperationOutcomeSTU3.MSG_OP_NOT_ALLOWED | | FhirValueSetOperationOutcomeSTU3.MSG_PARAM_CHAINED | | FhirValueSetOperationOutcomeSTU3.MSG_PARAM_NO_REPEAT | | FhirValueSetOperationOutcomeSTU3.MSG_PARAM_UNKNOWN | | FhirValueSetOperationOutcomeSTU3.MSG_PARAM_INVALID | | FhirValueSetOperationOutcomeSTU3.MSG_PARAM_MODIFIER_INVALID | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_EXAMPLE_PROTECTED | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_ID_FAIL | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_NOT_ALLOWED | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_REQUIRED | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_ID_MISMATCH | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_ID_MISSING | | FhirValueSetOperationOutcomeSTU3.MSG_RESOURCE_TYPE_MISMATCH | | FhirValueSetOperationOutcomeSTU3.MSG_SORT_UNKNOWN | | FhirValueSetOperationOutcomeSTU3.MSG_TRANSACTION_DUPLICATE_ID | | FhirValueSetOperationOutcomeSTU3.MSG_TRANSACTION_MISSING_ID | | FhirValueSetOperationOutcomeSTU3.MSG_UNHANDLED_NODE_TYPE | | FhirValueSetOperationOutcomeSTU3.MSG_UNKNOWN_CONTENT | | FhirValueSetOperationOutcomeSTU3.MSG_UNKNOWN_OPERATION | | FhirValueSetOperationOutcomeSTU3.MSG_UNKNOWN_TYPE | | FhirValueSetOperationOutcomeSTU3.MSG_UPDATED | | FhirValueSetOperationOutcomeSTU3.MSG_VERSION_AWARE | | FhirValueSetOperationOutcomeSTU3.MSG_VERSION_AWARE_CONFLICT | | FhirValueSetOperationOutcomeSTU3.MSG_VERSION_AWARE_URL | | FhirValueSetOperationOutcomeSTU3.MSG_WRONG_NS | | FhirValueSetOperationOutcomeSTU3.SEARCH_MULTIPLE | | FhirValueSetOperationOutcomeSTU3.UPDATE_MULTIPLE_MATCHES | | FhirValueSetOperationOutcomeSTU3.DELETE_MULTIPLE_MATCHES | | FhirValueSetOperationOutcomeSTU3.SEARCH_NONE |
NHSWalesFhir
Identifiers for use in Betsi Projects
| Constant | | --------------------------------------------------------------- | | NHSWalesFhir.LOCATION_IDENTIFIER | | NHSWalesFhir.CENTRAL_PAS_IDENTIFIER |
NHSWalesExtension
extensions for use in Betsi Projects
| Constant | | --------------------------------------------------------------- | | NHSWalesExtension.HOSPITAL_CLASSIFICATION |
NHSWalesCodeSystem
Code systems defined by NHS Wales for use in Betsi Projects
| Constant | | --------------------------------------------------------------- | | NHSWalesCodeSystem.HOSPITAL_CLASSIFICATION |
BCUHBCodeSystem
Code systems defined by us for use in Betsi Projects
| Constant | | --------------------------------------------------------------- | | BCUHBCodeSystem.CARE_TEAM_ROLE |
BCUHBExtension
Extensions defined by us for use in Betsi Projects
| Constant | | --------------------------------------------------------------- | | BCUHBExtension.SITE_DESCRIPTION | | BCUHBExtension.SPECIALTY_ICON | | BCUHBExtension.SPECIALTY_ABBREV | | BCUHBExtension.SPECIALTY_WORKLIST_DURATION | | BCUHBExtension.SPECIALTY_WORKLIST_START | | BCUHBExtension.SPECIALTY_SORT_ORDER | | BCUHBExtension.ADMISSION_STATUS | | BCUHBExtension.ADMISSION_CLERKING | | BCUHBExtension.ADMISSION_POST_TAKE | | BCUHBExtension.ADMISSION_BED | | BCUHBExtension.REFERRAL_TYPE |