This wiki has undergone a migration to Confluence found Here
Difference between revisions of "Requirements-Dynamic Model"
Jump to navigation
Jump to search
Line 129: | Line 129: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | Each interaction | + | | Each interaction may have an interaction type. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Interactions typically fall into one of a set of stereotypical behaviors. Each of these stereotypes have distinct expectations for the types of trigger events and receiver responsibilities associated with them. |
+ | |- | ||
+ | | ''Methodology'' | ||
+ | | | ||
+ | *Query - Solicits data from the receiver</xs:documentation> | ||
+ | *QueryResponse - Returns requested data to the query initiator, or an indication that requested data is unavailable.</xs:documentation> | ||
+ | *EventNotification - Informs the receiver about the occurrence of a trigger event, along with full or partial data related to that trigger event. | ||
+ | *RequestForAction - Solicits a specific action (trigger event) from the receiver. Must be an action the receiving Role is theoretically capable of performing. | ||
+ | *RequestResponseAccept - Notification of the agreement or conditional agreement to perform the requested action (trigger event) or a varient thereof. I.e. the accept may propose an alternative to the initial request. | ||
+ | *RequestResponseRefuse - Notification of the refusal to perform the requested action (trigger event). | ||
+ | *UntriggeredNotification - Transmission of data that is independent of the occurrence of any state-transition event or other interaction.E.g. auto-publish, broadcast, backload | ||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/Interaction/ | + | * mif-model-dynamic.xsd/Interaction/@interactionType |
− | |||
|} | |} | ||
Line 143: | Line 152: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Each interaction must identify the type of event that causes the exchange defined by the interaction to occur. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | The same set of data might be exchanged for many different purposes and in many different circumstances. Agreement on a specific reason for a given exchange is important to shared interpretation of the information. For example, a structure defining a prescription might be sent when asking for the prescription to be created in some central system, when asking a pharmacy to fill the prescription, or as a response to a query. The same data is sent, but the triggering event (and thus the semantic interpretation of the information and what internal business process should be invoked) is different. |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
− | | | + | | mif-model-dynamic.xsd/Interaction/invokingTriggerEvent |
− | |||
|} | |} | ||
Line 156: | Line 164: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Each interaction must have a definition of the content allowed to be conveyed as part of the exchange defined by the interaction. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | A key part of standardizing communication is standardizing the data content to be exchanged and how that data will be structured. Without knowledge of the data to be conveyed, interoperability cannot be achieved. |
+ | |- | ||
+ | | ''Methodology'' | ||
+ | | Refer to [[Requirements-Dynamic Model#Bound Models|Bound Models]] | ||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
− | | | + | | mif-model-dynamic.xsd/Interaction/argumentMessage |
− | |||
|} | |} | ||
Line 169: | Line 179: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Interactions must be able to define the communication flow expectations on a receiver of the exchange |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | Frequently in response to an interaction, one or more 'response' interactions are triggered. There can be multiple responses. | + | | Frequently in response to an interaction, one or more 'response' interactions are triggered. There can be multiple responses. For a simple, two-part example, a 'transaction' is not complete until both a request trigger event is and information is communication and it's confirm response is receiver. The confirm response is the 'receive responsibility'. These responsibilities are communicated by the sender and are intended to 'complete' a business function. In other cases, there is an expectation that an "event" will occur within the receiving system that will result in additional communications. |
+ | |- | ||
+ | | ''Methodology'' | ||
+ | | | ||
+ | *HL7 does not standardize the 'internal' behavior of applications as that is outside the scope of the organization's mandate. However, behavior around expressed communications is part of interoperability and is therefore defined. | ||
+ | * Receiver responsibilities are defined as a set of 0..* mutually exclusive alternatives. The receiver is expected to perform one and only one of the listed set of responsibilities. (It is possible for a defined responsibility to be "do nothing". | ||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
Line 180: | Line 195: | ||
+ | ===Receiver Responsibilities=== | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | Each | + | | Each receiver responsibility must have a reason. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Indicates the conditions under which this receiver responsibility should be chosen. Should be mutually exclusive with the conditions of all other receiver responsibilities for this interaction. Also, the combined reasons for all receiver responsibilities should be complete. I.e. There should be no circumstance that doesn't fit into the reason of one and only one receiver responsibility. This set of conditions ensures that the allowed communication behavior of the receiver is fully defined. For example, one responsibility might be invoked if a request is accepted, another if the request is not accepted but an alternative is proposed, and a third responsibility invoked in all other circumstances. |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/ | + | * mif-model-dynamic.xsd/ReceiverResponsibly/reason |
|} | |} | ||
Line 195: | Line 211: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | A receiver responsibility may have one or more 'response' interactions. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | A common pattern of communications is to send some sort of response when a piece of information has been received. This type of receiver responsibility allows interactions to be chained together. Supports acknowledgements as well as query responses. |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/ | + | * mif-model-dynamic.xsd/ReceiverResponsibly/invokingInteraction |
|} | |} | ||
− | + | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | A receiver responsibility may have one or more 'response' trigger events. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Some interactions may result in a defined "real world event" occurring in the receiving application. For example, if a request for fulfillment of an order is 'accepted', there may be a requirement that the receiver 'activate' a 'Promise' object. That trigger event would then fire all interactions having that state transition as the initiating trigger event |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/ReceiverResponsibly/ | + | * mif-model-dynamic.xsd/ReceiverResponsibly/invokingTriggerEvent |
|} | |} | ||
Line 221: | Line 237: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Interactions may have a number of different types of annotations |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | See rationales for individual annotations types |
|- | |- | ||
− | | '' | + | | ''Implementation'' |
− | | | + | | |
− | * | + | * [[Requirements-Annotations#Usage Constraint|Usage Constraint]] |
+ | * [[Requirements-Annotations#Usage Notes|Usage Notes]] | ||
+ | * [[Requirements-Annotations#Rationale|Rationale]] | ||
+ | * [[Requirements-Annotations#Requirements|Requirements]] | ||
+ | * [[Requirements-Annotations#Design Comments|Design Comments]] | ||
+ | * [[Requirements-Annotations#Stability Remarks|Stability Remarks]] | ||
+ | * [[Requirements-Annotations#Other Annotation|Other Annotation]] | ||
+ | * [[Requirements-Annotations#Mapping|Mapping]] | ||
+ | * [[Requirements-Annotations#Open Issue|Open Issue]] | ||
+ | * [[Requirements-Annotations#Static Example|Static Example]] | ||
+ | * [[Requirements-Annotations#Ballot Comment|Ballot Comment]] | ||
+ | * [[Requirements-Annotations#Change Request|Change Request]] | ||
+ | * [[Requirements-Annotations#Deprecation Information|Deprecation Information]] | ||
|} | |} | ||
+ | ===Application Roles=== | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | There is a need to define groupings of exchanges that systems might choose to support |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Applications that choose to implement random combinations of interactions will not interoperate. For example, a system that can send a query but cannot receive the response is useless. For true interoperability there needs to be a collection of interactions defined that a particular system can send and/or receive. That application would then be able to communicate with any system that supports the paired grouping. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Application roles serve many purposes: | |
− | + | * They can be the foundation for formal specifications and RFPs | |
− | + | * They provide an idea of desired/expected behavior | |
− | + | * They form a foundation for conformance testing | |
− | |||
− | |||
− | |||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
Line 263: | Line 284: | ||
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | There's a need to reference interactions in human-to-human communication |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
Line 276: | Line 297: | ||
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | When defining conformance structures, it's useful to allow composition of common combinations into more complex structures. For example a "Pharmacy system" application role might be composed of "Prescription filler", "Dispense notifier", "Medication profile querier" and similar roles. |
+ | |- | ||
+ | | ''Methodology'' | ||
+ | | Two types of composition are defined: | ||
+ | *AtLeastOne - The container application role must implement at least one, possibly more (including all) contained application roles. | ||
+ | *Includes - Defines the relationship where the container contains the contents. | ||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
Line 289: | Line 315: | ||
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | Application role is about the functional capability. Need to document for each role | + | | Application role is about the functional capability. Need to document for each role what the application is capable of receiving and sending. |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
Line 300: | Line 326: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | Each application role may either create or consume | + | | Each application role may either create or consume documents. |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | In addition to sending and receiving messages (services), applications may also create and consume documents, which don't have an associated dynamic model. This capability also needs to be bound into the definition of a system's characteristics. |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
Line 322: | Line 348: | ||
| ''Implementation'' | | ''Implementation'' | ||
| | | | ||
− | |||
* [[Requirements-Annotations#Usage Constraint|Usage Constraint]] | * [[Requirements-Annotations#Usage Constraint|Usage Constraint]] | ||
* [[Requirements-Annotations#Usage Notes|Usage Notes]] | * [[Requirements-Annotations#Usage Notes|Usage Notes]] | ||
Line 338: | Line 363: | ||
− | === | + | ===Structured Documents=== |
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | HL7 v3 specifications need to support defining information structures without any accompanying dynamic model |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Some standards do not involve any behavioral aspects. The definitions of any behavior are outside the scope of the standard. While this may reduce chances of interoperability, it does allow for increased flexibility on the usage of the standard |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/StructuredDocument | + | * mif-model-dynamic.xsd/StructuredDocument |
|} | |} | ||
Line 354: | Line 379: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | Structured | + | | Structured document definitions must have a unique name |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Structured document definitions need to be referenced in human-to-human communication |
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/StructuredDocument | + | * mif-model-dynamic.xsd/StructuredDocument/@name |
|} | |} | ||
Line 367: | Line 392: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Structured documents must have defined information structures |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Seeing as there's no dynamic model, the only thing left to standardize is the data content and structure. |
+ | |- | ||
+ | | ''Methodology'' | ||
+ | | Refer to [[Requirements-Dynamic Model#Bound Models|Bound Models]] | ||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
− | * mif-model-dynamic.xsd/ | + | * mif-model-dynamic.xsd/StructuredDocument/documentDefinition |
|} | |} | ||
Line 380: | Line 408: | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Interactions, Trigger Events, Application Roles and Structured Documents may have a number of different types of annotations |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | See rationales for individual annotations types |
|- | |- | ||
− | | '' | + | | ''Implementation'' |
− | | | + | | |
− | * | + | * [[Requirements-Annotations#Usage Constraint|Usage Constraint]] |
+ | * [[Requirements-Annotations#Usage Notes|Usage Notes]] | ||
+ | * [[Requirements-Annotations#Rationale|Rationale]] | ||
+ | * [[Requirements-Annotations#Requirements|Requirements]] | ||
+ | * [[Requirements-Annotations#Design Comments|Design Comments]] | ||
+ | * [[Requirements-Annotations#Stability Remarks|Stability Remarks]] | ||
+ | * [[Requirements-Annotations#Other Annotation|Other Annotation]] | ||
+ | * [[Requirements-Annotations#Mapping|Mapping]] | ||
+ | * [[Requirements-Annotations#Open Issue|Open Issue]] | ||
+ | * [[Requirements-Annotations#Ballot Comment|Ballot Comment]] | ||
+ | * [[Requirements-Annotations#Change Request|Change Request]] | ||
+ | * [[Requirements-Annotations#Deprecation Information|Deprecation Information]] | ||
|} | |} | ||
+ | ===Bound Models=== | ||
{| border="2" cellspacing="0" cellpadding="3" width="600" | {| border="2" cellspacing="0" cellpadding="3" width="600" | ||
| '''Requirement''' | | '''Requirement''' | ||
− | | | + | | Static models need to be able to be combined at run-time |
|- | |- | ||
| ''Rationale'' | | ''Rationale'' | ||
− | | | + | | Sometimes static models need to be constructed in such a way that they have associations that point to variable "un-defined" content. Before the model can be used, these "stub" locations need to be resolved. For example, a model that defines the transport information for a message might be capable of conveying many types of messages. However, when referenced in a particular interaction, the specific message content needs to be defined |
|- | |- | ||
− | | '' | + | | ''Methodology'' |
− | | | + | | HL7 models can contain named stubs or "template parameters" [To do: insert reference]. These parameters are then bound to other static models when the static model is referenced in a document or interaction definition. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| ''MIF'' | | ''MIF'' | ||
| | | | ||
* mif-model-dynamic.xsd/BoundStaticModel/parameterModel | * mif-model-dynamic.xsd/BoundStaticModel/parameterModel | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||