6.0.0 • Published 2 months ago

@synanetics/constants v6.0.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
2 months ago

@synanetics/constants

A collection of frequently used constants.

Example Usage (simple enums)

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';

Example usage (object enums)

Object enums for entire Codings have been included for some more-recently added constants, in order to simplify the declaration of Coding/CodeableConcept properties:

import { InterweaveAuditEventTypeCoding } from '@synanetics/constants';

const auditEventUsingCodingEnum = {
  resourceType: 'AuditEvent',
  type: InterweaveAuditEventTypeCoding.AUTHENTICATION_REQUEST.value,
  // ... other properties
};

This is equivalent to the below:

import { InterweaveAuditEventType, InterweaveFhirSystem } from '@synanetics/constants';

const auditEventWithoutUsingCodingEnum = {
  resourceType: 'AuditEvent',
  type: {
    code: InterweaveAuditEventType.AUTHENTICATION_REQUEST,
    system: InterweaveFhirSystem.AUDIT_EVENT_TYPE,
    display: 'Authentication Request',
  }
};

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
HL7ExtensionDefinitionCareConnect.NHS_NUMBER_VERIFICATION_STATUS

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

HL7CodeSystemCareConnect

Care Connect code system urls

Constant
HL7CodeSystemCareConnect.NHS_NUMBER_VERIFICATION_STATUS

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

HL7NhsNumberVerificationStatus

HL7 NHS Number Verification Status Coding.code enum for system https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1

ConstantValue
HL7NhsNumberVerificationStatus.PRESENT_AND_VERIFIED01
HL7NhsNumberVerificationStatus.PRESENT_NOT_TRACED02
HL7NhsNumberVerificationStatus.TRACE_REQUIRED03
HL7NhsNumberVerificationStatus.TRACE_ATTEMPTED04
HL7NhsNumberVerificationStatus.TRACE_NEEDS_RESOLVING05
HL7NhsNumberVerificationStatus.TRACE_IN_PROGRESS06
HL7NhsNumberVerificationStatus.TRACE_NOT_REQUIRED07
HL7NhsNumberVerificationStatus.TRACE_POSTPONED08

InterweaveHttpHeader

ConstantDescription
InterweaveHttpHeader.DATA_PROVIDER_WAIT_TIMECustom Interweave FHIR header presenting a the time for which a query should wait before timing out when searching the FHIRStore
InterweaveHttpHeader.RESOURCE_EXPIRY_TIMESTAMPCustom 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_TTLCustom 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_TIMESTAMPCustom 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_TTLCustom 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
InterweaveHttpHeader.ALLOW_INVALID_RESOURCESCustom Interweave FHIR header allowing invalid resources when making a FHIR request
InterweaveHttpHeader.ALLOW_LOCAL_RESOURCESCustom Interweave FHIR header allowing local resources when making a FHIR request

InterweaveFhirSystem

ConstantDescription
InterweaveFhirSystem.ACT_CODEEncounter class code system
InterweaveFhirSystem.ORGANIZATION_TYPEOrganization type code system
InterweaveFhirSystem.PARTICIPANT_IDOrganization Participant Id based system
InterweaveFhirSystem.PROVENANCE_TAGProvenance system for meta tag
InterweaveFhirSystem.REFRESH_TAGTag system to denote a last refresh for a resource
InterweaveFhirSystem.SOURCE_TAGSource system for meta tag
InterweaveFhirSystem.SUBSCRIPTION_PATIENT_IDSubscription Patient Id based system
InterweaveFhirSystem.TYPE_TAGTag system to denote a type of resource
InterweaveFhirSystem.LOCAL_IDENTIFIER_APPOINTMENTIdentifier system for local system use
InterweaveFhirSystem.LOCAL_IDENTIFIER_ENCOUNTERIdentifier system for local system use
InterweaveFhirSystem.LOCAL_IDENTIFIER_PATIENTIdentifier system for local system use
InterweaveFhirSystem.LOCAL_IDENTIFIER_SCHEDULEIdentifier system for local system use
InterweaveFhirSystem.LOCAL_IDENTIFIER_SERVICE_REQUESTIdentifier system for local system use
InterweaveFhirSystem.LOCAL_IDENTIFIER_SLOTIdentifier system for local system use
InterweaveFhirSystem.AUDIT_EVENT_TYPEExtension of FHIR AuditEvent type codes
InterweaveFhirSystem.AUDIT_EVENT_SUBTYPEExtension of FHIR AuditEvent subtype codes
InterweaveFhirSystem.AUDIT_EVENT_OUTCOMEExtension of FHIR AuditEvent outcome codes
InterweaveFhirSystem.AUDIT_AGENT_ROLEExtension of FHIR AuditEvent agent role codes
InterweaveFhirSystem.AUDIT_ENTITY_TYPEExtension of FHIR AuditEvent entity type codes
InterweaveFhirSystem.AUDIT_PURPOSE_OF_USEExtension of FHIR AuditEvent purpose of use codes
InterweaveFhirSystem.SERVICE_REQUEST_BARS_REFERRAL_TYPEServiceRequest BaRS referral type CodeSystem
InterweaveFhirSystem.SERVICE_REQUEST_BARS_BOOKING_STATUSServiceRequest BaRS referral booking status CodeSystem

InterweaveResourceProfileSTU3

Interweave defined structure definition url for use as meta.profile

Constant
InterweaveResourceProfileSTU3.ALLERGY_INTOLERANCE
InterweaveResourceProfileSTU3.APPOINTMENT
InterweaveResourceProfileSTU3.CARE_PLAN
InterweaveResourceProfileSTU3.DEVICE_REQUEST_SOCIAL_CARE
InterweaveResourceProfileSTU3.ENCOUNTER
InterweaveResourceProfileSTU3.EPISODE_OF_CARE
InterweaveResourceProfileSTU3.OBSERVATION
InterweaveResourceProfileSTU3.OBSERVATION_BLOOD_PRESSURE
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
InterweaveExtensionDefinition.SERVICE_REQUEST_BARS_REFERRAL_TYPE
InterweaveExtensionDefinition.SERVICE_REQUEST_BARS_BOOKING_STATUS
InterweaveExtensionDefinition.BARS_MESSAGE_BUNDLE_REFERENCE

InterweaveAccessReason

Descriptive enum of access reasons and related values.

ConstantValue
InterweaveAccessReason.DIRECT_CARE_EMERGENCY1.1
InterweaveAccessReason.DIRECT_CARE_NON_EMERGENCY1.2
InterweaveAccessReason.INDIRECT_CARE_CONSENT_PATIENT2
InterweaveAccessReason.INDIRECT_CARE_NO_PATIENT3
InterweaveAccessReason.ANALYTICS_PSEUDONYMISED4
InterweaveAccessReason.ADMINISTRATION5
InterweaveAccessReason.PDS_TRACE6
InterweaveAccessReason.CLINICAL_SAFETY_TESTING_DATA7.1
InterweaveAccessReason.CLINICAL_SAFETY_TESTING_UI7.2

InterweaveUserRole

Descriptive enum of user roles and related values.

ConstantValue
InterweaveUserRole.NATIONAL_ROLE41
InterweaveUserRole.SOCIAL_CARE_PROFESSIONAL2
InterweaveUserRole.CITIZEN3
InterweaveUserRole.SYSTEM_OR_ROBOT4
InterweaveUserRole.ADMINISTRATOR5
InterweaveUserRole.AUDITOR6
InterweaveUserRole.AUTHORISED_CARER7
InterweaveUserRole.NATIONAL_ROLE18
InterweaveUserRole.NATIONAL_ROLE29
InterweaveUserRole.NATIONAL_ROLE310
InterweaveUserRole.NATIONAL_ROLE3_PLUS11
InterweaveUserRole.NATIONAL_ROLE012

InterweaveAuditEventType

The allowed AuditEvent.type.code values from the ValueSet http://yhcr.nhs.net/fhir/valueset-audit-event-type, taken from section 2.3 of https://interweavedigital.com/wp-content/uploads/2024/06/YHCR-Design-Paper-009.-Auditing-v1.3.pdf

ConstantValue
InterweaveAuditEventType.AUTHENTICATION_REQUESTYHCR001
InterweaveAuditEventType.AUTHORIZATION_REQUESTYHCR002
InterweaveAuditEventType.FHIR_OPERATIONYHCR003
InterweaveAuditEventType.CONTENT_RELEASEDYHCR004
InterweaveAuditEventType.CONTENT_WITHHELDYHCR005
InterweaveAuditEventType.RESTRICTED_CONTENT_RELEASEDYHCR006
InterweaveAuditEventType.ASYNCHRONOUS_EVENTYHCR007
InterweaveAuditEventType.SUBSCRIPTION_RESULTYHCR008

InterweaveAuditEventSubType

The allowed AuditEvent.subtype.value values from the ValueSet http://yhcr.nhs.net/fhir/valueset-audit-event-sub-type, taken from section 2.3 of https://interweavedigital.com/wp-content/uploads/2024/06/YHCR-Design-Paper-009.-Auditing-v1.3.pdf.

Note that these each correspond with an AuditEvent.type, as per the comments in the code.

ConstantValue
InterweaveAuditEventSubType.USER_AUTHENTICATIONYHCR0101
InterweaveAuditEventSubType.AUTHENTICATION_OAUTH2_REQUESTYHCR0102
InterweaveAuditEventSubType.AUTHORIZATION_OAUTH2_REQUESTYHCR0201
InterweaveAuditEventSubType.FHIR_OPERATION_INBOUNDYHCR0301
InterweaveAuditEventSubType.FHIR_OPERATION_OUTBOUNDYHCR0302
InterweaveAuditEventSubType.FHIR_OPERATION_MERGEYHCR0303
InterweaveAuditEventSubType.FHIR_OPERATION_DELETEYHCR0304
InterweaveAuditEventSubType.FHIR_OPERATION_ERASEYHCR0305
InterweaveAuditEventSubType.ASYNCHRONOUS_QUERY_QUEUEDYHCR0701
InterweaveAuditEventSubType.ASYNCHRONOUS_PART_RECEIVEDYHCR0702
InterweaveAuditEventSubType.ASYNCHRONOUS_PART_RELEASEDYHCR0703
InterweaveAuditEventSubType.ASYNCHRONOUS_PART_PURGEDYHCR0704
InterweaveAuditEventSubType.SUBSCRIPTION_EXECUTEDYHCR0801
InterweaveAuditEventSubType.SUBSCRIPTION_RESULT_DELIVEREDYHCR0802
InterweaveAuditEventSubType.SUBSCRIPTION_RESULT_RECEIVEDYHCR0803

InterweaveAuditEventOutcome

Code values for the ValueSet http://yhcr.nhs.net/fhir/valueset-audit-event-outcome, as defined in section 2.4 of https://interweavedigital.com/wp-content/uploads/2024/06/YHCR-Design-Paper-009.-Auditing-v1.3.pdf

ConstantValue
InterweaveAuditEventOutcome.SUCCESS0
InterweaveAuditEventOutcome.MINOR_FAILURE4
InterweaveAuditEventOutcome.SERIOUS_FAILURE8
InterweaveAuditEventOutcome.MAJOR_FAILURE12
InterweaveAuditEventOutcome.DENIED99

InterweaveAuditAgentRole

Enum of code values for the ValueSet http://yhcr.nhs.net/Coding/audit-agent-role, as defined in section 2.5 of https://interweavedigital.com/wp-content/uploads/2024/06/YHCR-Design-Paper-009.-Auditing-v1.3.pdf

ConstantValue
InterweaveAuditAgentRole.DATA_CONSUMERdata-consumer
InterweaveAuditAgentRole.DATA_PROVIDERdata-provider
InterweaveAuditAgentRole.AGGREGATORaggregator
InterweaveAuditAgentRole.IAMiam

InterweaveAuditEntityType

Enum of "audit entity type" (expansion based on http://hl7.org/fhir/audit-entity-type version 3.0.2), with inclusion of "nhs-no", as per section 2.8 of https://interweavedigital.com/wp-content/uploads/2024/06/YHCR-Design-Paper-009.-Auditing-v1.3.pdf

ConstantValue
InterweaveAuditEntityType.PERSON1
InterweaveAuditEntityType.SYSTEM_OBJECT2
InterweaveAuditEntityType.ORGANIZATION3
InterweaveAuditEntityType.OTHER4
InterweaveAuditEntityType.NHS_NUMBERnhs-no

InterweaveAuditPurposeOfUse

Descriptive enum of "purpose of use" and related values.

ConstantValue
InterweaveAccessReason.DIRECT_CARE_EMERGENCY1.1
InterweaveAccessReason.DIRECT_CARE_NON_EMERGENCY1.2
InterweaveAccessReason.INDIRECT_CARE_CONSENT_PATIENT2
InterweaveAccessReason.INDIRECT_CARE_NO_PATIENT3
InterweaveAccessReason.ANALYTICS_PSEUDONYMISED4
InterweaveAccessReason.ADMINISTRATION5

InterweaveBarsReferralTypeCoding

FHIR CodeSystem for Interweave-R4BaRSReferralType

{
  'referral-only': {
    system: 'https://fhir.interweavedigital.nhs.uk/CodeSystem/Interweave-R4BaRSReferralType',
    code: 'referral-only',
    display: 'BaRS referral with no associated booking',
  },
  'referral-with-booking': {
    system: 'https://fhir.interweavedigital.nhs.uk/CodeSystem/Interweave-R4BaRSReferralType',
    code: 'referral-with-booking',
    display: 'BaRS referral with associated booking',
  },
}

InterweaveBarsReferralBookingStatusCoding

FHIR CodeSystem for Interweave-R4BaRSReferralBookingStatus

{
  'booked': {
    system: 'https://fhir.interweavedigital.nhs.uk/CodeSystem/Interweave-R4BaRSReferralBookingStatus',
    code: 'booked',
    display: 'BaRS referral with associated booking - booking is booked',
  },
  'cancelled': {
    system: 'https://fhir.interweavedigital.nhs.uk/CodeSystem/Interweave-R4BaRSReferralBookingStatus',
    code: 'cancelled',
    display: 'BaRS referral with associated booking - booking is cancelled',
  },
}

FhirCodeSystem

ConstantDescription
FhirCodeSystem.SNOMED_CTFor the SNOMED CT code system
FhirCodeSystem.OPERATION_OUTCOMEFor the operation outcome code system
FhirCodeSystem.LOINC_ORGFor the loinc.org code system
FhirCodeSystem.SERVICE_REQUEST_CATEGORYFor ServiceRequest category code system
FhirCodeSystem.CONSENT_CATEGORY_BARSFor Consent category code system on BaRS message

FhirIdentifierSystem

ConstantDescription
FhirIdentifierSystem.GMC_NUMBERURL for the GMC (General Medical Council) number identifier system
FhirIdentifierSystem.NHS_NUMBERURL for the NHS number identifier system
FhirIdentifierSystem.ODS_CODEURL for the Organisation ODS code identifier system
FhirIdentifierSystem.SDS_USER_IDURL 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

FhirValueSetNetworkTypeSTU3

Enum for ValueSet expansion based on http://hl7.org/fhir/network-type version 3.0.2

ConstantValue
FhirValueSetNetworkTypeSTU3.MACHINE_NAME1
FhirValueSetNetworkTypeSTU3.IP_ADDRESS2
FhirValueSetNetworkTypeSTU3.TELEPHONE_NUMBER3
FhirValueSetNetworkTypeSTU3.EMAIL_ADDRESS4
FhirValueSetNetworkTypeSTU3.URI5

FhirValueSetAuditEventActionSTU3

Enum for ValueSet expansion based on http://hl7.org/fhir/audit-event-action version 3.0.2

ConstantValue
FhirValueSetAuditEventActionSTU3.CREATEC
FhirValueSetAuditEventActionSTU3.READR
FhirValueSetAuditEventActionSTU3.UPDATEU
FhirValueSetAuditEventActionSTU3.DELETED
FhirValueSetAuditEventActionSTU3.EXECUTEE

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
BCUHBCodeSystem.CRN_IDENTIFIER
BCUHBCodeSystem.ENCOUNTER_SOURCE
BCUHBCodeSystem.PATIENT_SOURCE
BCUHBCodeSystem.TASK_CATEGORY

BCUHBExtension

Extensions defined by us for use in Betsi Projects

Constant
BCUHBExtension.ADMISSION_BED
BCUHBExtension.ADMISSION_CLERKING
BCUHBExtension.ADMISSION_CLERKING_CLERK
BCUHBExtension.ADMISSION_CLERKING_PERIOD
BCUHBExtension.ADMISSION_DISCHARGE
BCUHBExtension.ADMISSION_OTHER_REFERRAL_TYPE
BCUHBExtension.ADMISSION_POST_TAKE
BCUHBExtension.ADMISSION_POST_TAKE_NOTES
BCUHBExtension.ADMISSION_POST_TAKE_TIME
BCUHBExtension.ADMISSION_REFERRAL_ACCEPTED_BY_BLEEP
BCUHBExtension.ADMISSION_REFERRAL_ACCEPTED_BY_NAME
BCUHBExtension.ADMISSION_REFERRAL_ACCEPTED_BY_TYPE
BCUHBExtension.ADMISSION_REFERRAL_TIME
BCUHBExtension.ADMISSION_STATUS
BCUHBExtension.ADMISSION_TIME
BCUHBExtension.ADMISSION_WORKLIST_DATE
BCUHBExtension.HANDOVER_BY
BCUHBExtension.HANDOVER_DISCHARGE_LETTER_COMPLETE
BCUHBExtension.HANDOVER_POSSIBLE_WEEKEND_DISCHARGE
BCUHBExtension.HANDOVER_TARGET_COMPLETION_DATE
BCUHBExtension.HANDOVER_TO_ROLE
BCUHBExtension.HANDOVER_TO_SHIFT
BCUHBExtension.REFERRAL_TYPE
BCUHBExtension.SITE_DESCRIPTION
BCUHBExtension.SPECIALTY_ABBREV
BCUHBExtension.SPECIALTY_ICON
BCUHBExtension.SPECIALTY_SORT_ORDER
BCUHBExtension.SPECIALTY_WORKLIST_DURATION
BCUHBExtension.SPECIALTY_WORKLIST_START
BCUHBExtension.TASK_TARGET_COMPLETION_DATE
BCUHBExtension.TASK_TARGET_COMPLETION_SHIFT
6.0.0

2 months ago

5.12.0

3 months ago

5.11.0

5 months ago

5.11.0-beta.0

5 months ago

5.10.0

5 months ago

5.5.0

8 months ago

5.5.0-beta.0

8 months ago

5.8.0

7 months ago

5.6.0

8 months ago

5.9.0

7 months ago

5.7.0

8 months ago

5.4.0

9 months ago

5.3.0

10 months ago

5.2.0

10 months ago

5.1.0

11 months ago

5.0.0

11 months ago

3.9.0

1 year ago

3.8.0

1 year ago

3.10.0

1 year ago

3.7.0

1 year ago

3.6.0

1 year ago

3.5.0

1 year ago

4.4.1

11 months ago

4.4.0

11 months ago

4.3.1-beta.0

12 months ago

4.1.0

1 year ago

4.0.0

1 year ago

4.3.0

12 months ago

4.2.0

1 year ago

3.4.0

1 year ago

3.3.0

1 year ago

3.2.0

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.4.0

1 year ago

3.0.0-beta.0

1 year ago

2.4.0-beta.3

1 year ago

2.4.0-beta.2

1 year ago

2.4.0-beta.1

1 year ago

2.4.0-beta.0

1 year ago

2.3.0

1 year ago

2.3.0-beta.0

1 year ago

2.3.0-beta.1

1 year ago

2.2.0

2 years ago

2.2.0-beta.0

2 years ago

2.2.0-beta.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-beta.4

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.1

2 years ago

1.0.0-beta.0

2 years ago