# MGMT - 7MED - Performance TEST

This Mirth Connect channel is designed for performance testing by sending messages to itself, modifying the message ID each time. The goal is to measure the time it takes to send a specified number of messages and calculate the maximum number of messages the channel could handle per day.

## Instructions

1. **Setup**: Import the provided XML file `MGMT - 7MED - Performance TEST.xml` into your Mirth Connect instance.
2. **Configuration**: Ensure that the source listener port is correctly set to match your environment.
3. **Running the Test**:
   - The initial message will have its ID set, and it will be sent the specified number of times.
   - The channel will measure the time taken for the messages to be processed.
   - At the end of the test, the channel will output the time taken, average processing speed, message size, and daily processing capacity.

## Scripts Explanation

### Source Connector Script
- **Initialise and Track Message Quantity**: Initializes the message quantity and timestamp, and stores these in the global map for use across the channel.

### Destination Connector Script
- **Decrement Message Quantity and Update Message ID**: Decrements the message quantity and updates the message ID in the HL7 message segment MSH.10.1.

### Filter Script
- **Process and Encode Final Message**: Processes the message, calculates time, speed, and capacity, and generates the final output in an encoded format, replacing placeholders with actual values.

## Terms of Use

This channel is free to use but is not allowed to be sold or used for commercial purposes. The only allowed usage is for Mirth Connect users, whether for personal use or within hospitals for their own testing.

## About 7Med

7Med is dedicated to revolutionizing healthcare technology by providing cutting-edge integration solutions. Our services are designed to enhance data accuracy, streamline workflows, and elevate patient care.

### Services Offered by 7Med

1. **HL7 & FHIR Integration**: We offer seamless data exchange solutions between diverse healthcare systems, including EMRs, EHRs, and PACS. Our integration services enhance operational efficiency, ensure regulatory compliance, and improve patient care.
2. **Mirth Connect Solutions**: Maximize data integration efficiency with our Mirth Connect services, tailored to fit the unique needs of your healthcare organization.
3. **Application Development**: We develop custom applications to empower your healthcare organization, ensuring they meet specific operational requirements.
4. **Monitoring & Support**: Comprehensive monitoring and support services for your healthcare systems, ensuring continuous and reliable performance.

### Contact Information

**7Med LTD - Integration Development Specialist**  

Email: info@7med.co.uk  
Address: 9 Stinsford House, Dorchester DT2 8PT  
[Visit 7Med LTD](https://7med.co.uk/)

We invite you to explore how 7Med can help transform your healthcare integration processes and improve patient care delivery.
