@synanetics/types
Version:
Common types for cross repository use
47 lines • 1.84 kB
TypeScript
import { CodeableConcept, DomainResource, Period, Reference } from 'fhir/r4.js';
/**
* RoutingRule defines a routing between two Organizations where one is a sender,
* and the other a receiver for a given process, as well as the time period for which it is valid.
* The definition optionally includes the sender's local code(s) for the process, as well as a
* reference to a ConceptMap that instructs the consumer how to convert the sender's local codes
* to ones the receiver prefers.
*/
export interface RoutingRule extends DomainResource {
/**
* The resourceType, always RoutingRule
*/
readonly resourceType: 'RoutingRule';
/**
* The current status of the RoutingRule. Note that if the current time is outside of the
* timeframe defined by `Period`, the rule will not be evaluated.
*/
status: 'active' | 'inactive';
/**
* A Boolean flag that determines whether or not this is the default routing rule for this sender.
*/
default: boolean;
/**
* A Boolean indicating whether or not this is the default RoutingRule for the sender.
*/
sender: Reference;
/**
* A reference to the receiving Organization
*/
receiver: Reference;
/**
* The time period for which the routing rule is valid
*/
period: Period;
/**
* A set of codes, chosen by the sender, that can be used to identify that this RoutingRule is to
* be used.
*/
senderCode?: CodeableConcept[];
/**
* A concept map to be applied to the `senderCode` in the context of this RoutingRule. An example
* might be that, when sending pathology test A to laboratory 1, ConceptMap/LAB.1 needs to be
* applied to convert the sender's local code to SNOMED CT.
*/
conceptMap?: Reference;
}
//# sourceMappingURL=routingRule.d.ts.map