検索

質問
· 2025年8月14日

Any Better Way to Strip the Fractions of Seconds from a Posix Time?

Is there a better way (i.e., without string commands) to remove the fractions of seconds from a %Library.PosixTime value?

This works, but seems inefficient:

set posix = 1154669852181849976
w ##class(%Library.PosixTime).LogicalToTimeStamp(posix)
2025-05-27 12:06:15.003
set str = ##class(%Library.PosixTime).LogicalToTimeStamp(posix)
set stripped = $P(str,".",1)
w ##class(%Library.PosixTime).TimeStampToLogical(stripped)
1154669852181846976
set newposix = ##class(%Library.PosixTime).TimeStampToLogical(stripped)
w ##class(%Library.PosixTime).LogicalToTimeStamp(newposix)
2025-05-27 12:06:15

Note that I don't need the last string output; the value stored in "newposix" is what I want to retain.

Thanks in advance

8 Comments
ディスカッション (8)3
続けるにはログインするか新規登録を行ってください
質問
· 2025年8月14日

ZenPage Table not Updating

Hi all,

I’m running into an issue with a %ZEN.Component.tablePane in a Zen page.

We have:

  • A fully styled table with all columns defined
  • A backend query (SearchMessages) that accepts multiple filter parameters
  • A set of input fields at the top of the page for filtering (text, date, and checkboxes)

We’re trying to run the query from a button click using a client-side method (runSearch()) that collects the filter values, sets them as parameters, and calls executeQuery().

The problem is that the table does not update at all. Old rows remain, or sometimes nothing appears. I am struggling to debug this issue and anyone with experience making zen tables and updating them using queries would be extremely helpful. Below is a bit of my code

<!-- Filters -->
    <hgroup id="filtersContainer">
      <group id="filter-group-documents">
        <text label="DocumentID:" id="filterDocumentID"/>
        <text label="DocumentSource:" id="filterDocumentSource"/>
      </group>
 
      <group id="filter-group-session-message">
        <text label="SessionID:" id="filterSessionID"/>
        <text label="MessageControlID:" id="filterMessageControlID"/>
      </group>
 
      <group id="filter-group-person-facility">
        <text label="PersonID:" id="filterPersonID"/>
        <text label="SourceFacility:" id="filterSourceFacility"/>
      </group>
 
      <group id="filter-group-event-encounter">
        <text label="EventType:" id="filterEventType"/>
        <text label="EncounterNumber:" id="filterEncounterNumber"/>
      </group>
 
      <group id="filter-group-message-date">
        <dateText label="Message Date From:" id="filterMessageDateFrom"/>
        <dateText label="Message Date To:" id="filterMessageDateTo"/>
      </group>
 
      <group id="filter-group-send-time">
        <dateText label="Send Time From:" id="filterSendTimeFrom"/>
        <dateText label="Send Time To:" id="filterSendTimeTo"/>
      </group>
 
    <!-- Active / Duplicate -->
    <group id="filter-group-checkboxes">
        <checkbox label="Is Active" id="filterIsActive"/>
        <checkbox label="Is Duplicate" id="filterIsDuplicate"/>
    </group>
 
    <!-- Last Update -->
    <group id="filter-group-last-update">
        <dateText label="Last Update From:" id="filterLastUpdateFrom"/>
        <dateText label="Last Update To:" id="filterLastUpdateTo"/>
    </group>
    <group id="filter-group-message-id">
        <text label="OriginalMessageID:" id="filterOriginalMessageID"/>
    </group>
    <group id="filter-group-search">
        <button caption="Search" onclick="zenPage.runSearch();"/>
    </group>
    </hgroup>
 
    <!-- Results Table -->
    <tablePane id="resultsTable"
               autoExecute="true"
               queryClass="MD.UI.MessageTrackingQuery"
               queryName="SearchMessages">
        <column colName="DocumentID" cellTitle="DocumentID" filterQuery="SearchMessages"/>
        <column colName="DocumentSource" cellTitle="DocumentSource" filterQuery="SearchMessages"/>
        <column colName="SessionID" cellTitle="SessionID" filterQuery="SearchMessages"/>
        <column colName="MessageControlID" cellTitle="MessageControlID" filterQuery="SearchMessages"/>
        <column colName="PersonID" cellTitle="PersonID" filterQuery="SearchMessages"/>
        <column colName="SourceFacility" cellTitle="SourceFacility" filterQuery="SearchMessages"/>
        <column colName="EventType" cellTitle="EventType" filterQuery="SearchMessages"/>
        <column colName="EncounterNumber" cellTitle="EncounterNumber" filterQuery="SearchMessages"/>
        <column colName="MessageDate" cellTitle="MessageDate" filterQuery="SearchMessages"/>
        <column colName="SendTime" cellTitle="SendTime" filterQuery="SearchMessages"/>
        <column colName="IsActive" cellTitle="IsActive" filterQuery="SearchMessages"/>
        <column colName="IsDuplicate" cellTitle="IsDuplicate" filterQuery="SearchMessages"/>
        <column colName="LastUpdateTime" cellTitle="LastUpdateTime" filterQuery="SearchMessages"/>
        <column colName="OriginalMessageID" cellTitle="OriginalMessageID" filterQuery="SearchMessages"/>
    </tablePane>
 
/// JS to run the search
ClientMethod runSearch() [ Language = javascript ]
{
    function normalize(value) {
        return (value === "" || value === undefined) ? null : value;
    }
 
    function normalizeDate(value, endOfDay) {
        if (!value) return null;
        // Otherwise append start or end of day
        return endOfDay ? value + " 23:59:59" : value + " 00:00:00";
    }
 
    var params = {
        DocumentID:        normalize(zenPage.getComponentById('filterDocumentID').getValue()),
        DocumentSource:    normalize(zenPage.getComponentById('filterDocumentSource').getValue()),
        SessionID:         normalize(zenPage.getComponentById('filterSessionID').getValue()),
        MessageControlID:  normalize(zenPage.getComponentById('filterMessageControlID').getValue()),
        PersonID:          normalize(zenPage.getComponentById('filterPersonID').getValue()),
        SourceFacility:    normalize(zenPage.getComponentById('filterSourceFacility').getValue()),
        EventType:         normalize(zenPage.getComponentById('filterEventType').getValue()),
        EncounterNumber:   normalize(zenPage.getComponentById('filterEncounterNumber').getValue()),
        MessageDateFrom:   normalizeDate(zenPage.getComponentById('filterMessageDateFrom').getValue(), false),
        MessageDateTo:     normalizeDate(zenPage.getComponentById('filterMessageDateTo').getValue(), true),
        SendTimeFrom:      normalizeDate(zenPage.getComponentById('filterSendTimeFrom').getValue(), false),
        SendTimeTo:        normalizeDate(zenPage.getComponentById('filterSendTimeTo').getValue(), true),
        IsActive:          zenPage.getComponentById('filterIsActive').getValue() ? 1 : null,
        IsDuplicate:       zenPage.getComponentById('filterIsDuplicate').getValue() ? 1 : null,
        LastUpdateFrom:    normalizeDate(zenPage.getComponentById('filterLastUpdateFrom').getValue(), false),
        LastUpdateTo:      normalizeDate(zenPage.getComponentById('filterLastUpdateTo').getValue(), true),
        OriginalMessageID: normalize(zenPage.getComponentById('filterOriginalMessageID').getValue())
    };
 
    console.log("Starting to get results");
    console.log("Filters:");
    console.log("------------------------");
    for (var key in params) {
        if (params[key] != null && params[key] !== "") {
            console.log(key + ": " + params[key]);
        }
    }
 
    // Assign to tablePane parameters and run query
    var table = zenPage.getComponentById('resultsTable');
    table.parameters = params;
    console.log(table.parameters);
    table.executeQuery(true, true);
    console.log(table.getColumnFilters());
}
Query SearchMessages(DocumentID, DocumentSource, SessionID, MessageControlID, PersonID, SourceFacility, EventType, EncounterNumber, MessageDateFrom, MessageDateTo, SendTimeFrom, SendTimeTo, IsActive, IsDuplicate, LastUpdateFrom, LastUpdateTo, OriginalMessageID) As %SQLQuery
{
    SELECT DocumentID, DocumentSource, SessionID, MessageControlID, PersonID, SourceFacility, EventType, EncounterNumber, MessageDate, SendTime,
           IsActive, IsDuplicate, LastUpdateTime, OriginalMessageID
    FROM MD.MessageTracking
    WHERE (DocumentID = :DocumentID OR :DocumentID IS NULL)
      AND (DocumentSource = :DocumentSource OR :DocumentSource IS NULL)
      AND (SessionID = :SessionID OR :SessionID IS NULL)
      AND (MessageControlID = :MessageControlID OR :MessageControlID IS NULL)
      AND (PersonID = :PersonID or :PersonID IS NULL)
      AND (SourceFacility = :SourceFacility or :SourceFacility IS NULL)
      AND (EventType = :EventType or :EventType IS NULL)
      AND (EncounterNumber = :EncounterNumber or :EncounterNumber IS NULL)
      AND (MessageDate >= :MessageDateFrom OR :MessageDateFrom IS NULL)
      AND (MessageDate <= :MessageDateTo OR :MessageDateTo IS NULL)
      AND (SendTime >= :SendTimeFrom OR :SendTimeFrom IS NULL)
      AND (SendTime <= :SendTimeTo OR :SendTimeTo IS NULL)
      AND (IsActive = :IsActive OR :IsActive IS NULL)
      AND (IsDuplicate = :IsDuplicate OR :IsDuplicate IS NULL)
      AND (LastUpdateTime >= :LastUpdateFrom OR :LastUpdateFrom IS NULL)
      AND (LastUpdateTime <= :LastUpdateTo OR :LastUpdateTo IS NULL)
      AND (OriginalMessageID = :OriginalMessageID OR :OriginalMessageID IS NULL)
}


 
ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
お知らせ
· 2025年8月14日

[Video] Testing Non-functional Requirements in Applications

Hi, Community!

Looking for ways to improve your application testing? See how to build requirements such as performance and scalability into your development workflow:

Testing Non-functional Requirements in Applications

InterSystems experts @Erik Hemdal, @Matthew Giesmann, and @Chad Severtson discuss the benefits of testing these requirements, and how it can be done!

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2025年8月14日 6m read

Exploring the Carolinas: The Ultimate Travel Guide to North and South Carolina

 

The Carolinas—comprising North Carolina and South Carolina—are an extraordinary blend of history, culture, nature, and modern attractions. These southeastern states are rich in diverse landscapes, from the serene Blue Ridge Mountains to the bustling beaches along the Atlantic. Whether you’re an outdoor enthusiast, a history buff, or someone simply looking for a relaxing getaway, the Carolinas offer an array of experiences that are sure to captivate any traveler.

The Charms of North Carolina

North Carolina is a state that offers something for everyone. From its vibrant cities to its stunning natural landscapes, this region is a must-visit for those wanting to immerse themselves in southern culture while exploring the wonders of nature.

The Smoky Mountains

One of the crown jewels of North Carolina is the Great Smoky Mountains National Park, located on the border between North Carolina and Tennessee. This UNESCO World Heritage Site is home to over 19,000 species of living organisms and is known for its mist-covered peaks, hiking trails, and waterfalls. Whether you're hiking the Appalachian Trail or simply enjoying the scenic drives, the Smokies are a haven for nature lovers.

The Historic Charm of Asheville

Asheville, located in the heart of the Blue Ridge Mountains, is another gem. Known for its art deco architecture and vibrant cultural scene, Asheville attracts artists, musicians, and creatives from around the world. It’s a city with a creative spirit, offering everything from craft breweries to art galleries and outdoor adventures.

Coastal Escapes: Outer Banks

If you're craving the beach, North Carolina’s Outer Banks are an essential destination. Stretching along the Atlantic coast, the Outer Banks are known for their beautiful, secluded beaches, historic lighthouses, and charming seaside towns. The Cape Hatteras National Seashore offers perfect conditions for kite flying, windsurfing, and beachcombing, while the Wright Brothers National Memorial celebrates the birthplace of modern aviation.

South Carolina: A Blend of History, Culture, and Coastline

South Carolina offers a distinct charm with its mix of historical significance, scenic beauty, and coastal allure. Its cities are steeped in history, while the coastline features some of the most beautiful beaches in the United States.

Charleston: Where History Meets Southern Hospitality

Charleston, South Carolina’s oldest city, is a living museum of southern charm. Its cobblestone streets, antebellum mansions, and historic churches make it a city that tells a story at every turn. The city is also known for its culinary scene, where Lowcountry cuisine reigns supreme. A visit to Charleston isn’t complete without exploring the historic district, including the Battery promenade and the historic King Street, home to some of the best shopping in the south.

Myrtle Beach: Family Fun by the Sea

For those seeking a classic beach experience, Myrtle Beach is a family-friendly destination filled with amusements, water parks, and miles of golden sands. It is an iconic destination known for its lively boardwalk, numerous golf courses, and the Myrtle Beach SkyWheel, one of the country’s largest observation wheels.

Hilton Head Island: Relaxation and Recreation

Just south of Charleston, Hilton Head Island is known for its scenic beauty and luxurious resorts. Whether you’re looking to relax on pristine beaches or enjoy outdoor activities like golfing, biking, and kayaking, Hilton Head Island offers a laid-back yet refined atmosphere for vacationers.

A Hub for Outdoor Adventures

Both North and South Carolina offer exceptional opportunities for outdoor adventures, making them ideal destinations for nature lovers and thrill-seekers.

Hiking and Camping

Both states are home to an extensive network of hiking trails, including the Blue Ridge Parkway in North Carolina, and the Congaree National Park in South Carolina. These parks provide incredible camping opportunities and are great for those who want to connect with nature in its purest form.

Water Sports and Fishing

From white-water rafting in North Carolina’s rivers to deep-sea fishing in South Carolina’s coastal waters, water sports enthusiasts will find no shortage of activities. The Carolinas are famous for their fishing expeditions, including off-shore and in-shore fishing, as well as water sports like kayaking, paddleboarding, and jet skiing.

Carolinas: A Cultural Tapestry

The Carolinas aren’t just about nature and beaches—they are also deeply rooted in cultural experiences that will enrich any traveler’s journey.

Music and Festivals

Music plays a huge role in the cultural fabric of the Carolinas. Whether it’s bluegrass in Asheville or jazz in Charleston, the states have a rich musical heritage that visitors can enjoy year-round. Additionally, festivals such as the North Carolina Bluegrass Festival and the Spoleto Festival USA in Charleston bring world-class performances to local audiences.

Historic Sites

The Carolinas are home to some of the most significant historic landmarks in the United States. From plantations and battlegrounds to historic cities like Charleston and Raleigh, these states offer a profound connection to America’s past. Visitors can explore Civil War history, visit preserved homes of former presidents, or take part in guided tours to learn about the state’s role in shaping the country.

Planning Your Trip: Tips and Recommendations

The Carolinas are easily accessible by car, with several interstate highways running through both states. While the region is welcoming year-round, spring and fall are particularly beautiful, offering mild weather and stunning views.

For those looking to make the most of their trip, visiting both North and South Carolina allows travelers to experience a full spectrum of what the Southeast has to offer. From the mountains to the coast, history to modern culture, the Carolinas are a destination where every traveler can find something to suit their tastes.

At Carolina Travel Pop, we specialize in crafting the best travel experiences across the Carolinas. Whether you’re planning a weekend getaway or an extended vacation, we offer insider tips and recommendations to ensure your trip is unforgettable. Discover more on our homepage for additional resources to plan your perfect Carolinas escape.

Conclusion

With its perfect balance of natural beauty, historical charm, and vibrant culture, the Carolinas are a destination that will leave a lasting impression on anyone who visits. Whether you’re a history lover, outdoor enthusiast, or simply in search of the perfect beach, the Carolinas promise something for everyone.

For more travel tips and in-depth guides on the best places to visit in the Carolinas, be sure to visit our Carolina Travel Pop homepage, where you’ll find everything you need to plan your perfect journey.


FAQs

1. What are the best times to visit the Carolinas?

  • The Carolinas are great to visit year-round, but spring and fall offer the best weather for outdoor activities and sightseeing.

2. What are the must-see destinations in North Carolina?

  • The Great Smoky Mountains, Asheville, and the Outer Banks are must-see destinations in North Carolina.

3. Is Charleston a family-friendly destination?

  • Yes, Charleston offers a mix of historic tours, kid-friendly museums, and beautiful beaches, making it perfect for families.

4. What outdoor activities can I do in the Carolinas?

  • Hiking, fishing, kayaking, and golf are popular outdoor activities in both North and South Carolina.

5. Are there any cultural festivals in the Carolinas?

  • Yes, both states host numerous festivals celebrating music, food, and local traditions, including the Spoleto Festival in Charleston and the North Carolina Bluegrass Festival.

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2025年8月14日 3m read

InterSystems IRIS for Health : la solution la plus rapide pour optimiser les données de santé

Les données sont au cœur de la transformation numérique qui bouleverse le secteur de la santé. Ce changement radical nécessite de nouvelles bases pour gérer les énormes besoins en données des soins de santé modernes.

Le délai de mise sur le marché est crucial pour développer les prochaines avancées thérapeutiques, les connaissances génomiques et les flux de travail cliniques intelligents. Vous devez les mettre en œuvre dès maintenant.

C'est pourquoi nous avons étendu la puissance de notre plateforme de données InterSystems IRIS afin de répondre aux spécificités des informations de santé. InterSystems IRIS for Health est la première et la seule plateforme de données au monde conçue spécifiquement pour le développement rapide d'applications de santé afin de gérer les données les plus critiques au monde.

Aucun fournisseur de gestion de données n'offre un engagement plus important envers le secteur de la santé ni une expérience aussi pertinente. À l'échelle mondiale, plus d'un milliard de dossiers médicaux sont gérés par des solutions basées sur notre technologie. Les laboratoires utilisant InterSystems traitent chaque jour près de la moitié des échantillons aux États-Unis. Les prestataires de soins de santé privés et publics les plus sophistiqués s'appuient sur des appareils, des dossiers et des technologies de l'information optimisés par InterSystems.

InterSystems IRIS for Health vous offre tout ce dont vous avez besoin pour développer rapidement des applications de santé riches en données.

DU TABLEAU BLANC À LA PRODUCTION, RAPIDEMENT

InterSystems IRIS for Health offre toutes les fonctionnalités nécessaires à la création d'applications complexes, critiques et gourmandes en données. Cette plateforme complète couvre la gestion des données, l'interopérabilité, le traitement des transactions et l'analyse, et est conçue pour accélérer la rentabilisation.

CONÇU POUR LES GRANDES VOLUMÉTRIES

Le volume et la diversité des informations médicales sont incroyablement importants et connaissent une croissance exponentielle. InterSystems IRIS for Health permet aux applications d'évoluer efficacement, verticalement et horizontalement, pour gérer de manière rentable les charges de travail, les données et les utilisateurs, quelle que soit leur ampleur.

ACCÉLÉRER LES CONNEXIONS

Une santé véritablement connectée nécessite un flux d'informations interchangeable entre toutes les sources, modernes et traditionnelles. InterSystems IRIS for Health prenant en charge nativement FHIR et toutes les principales normes mondiales de messagerie médicale, les applications peuvent rapidement ingérer, normaliser et partager les informations.

UNE INTELLIGENCE PLUS PROFONDE

L'intelligence artificielle et l'apprentissage automatique déterminent leur succès ou leur échec en fonction de la qualité des données sous-jacentes. InterSystems IRIS for Health offre des capacités avancées de préparation des données pour créer des modèles de santé transformateurs et optimiser l'efficacité des solutions d'apprentissage.

CONNAISSANCE APPROFONDIE

L'aide à la décision clinique, la médecine du laboratoire au chevet du patient et les attentes croissantes des consommateurs exigent des réponses en temps réel. InterSystems IRIS for Health excelle dans le traitement transactionnel/analytique hybride (HTAP) et propose des solutions qui répondent à ces exigences croissantes.


Plus d'articles sur le sujet :

Source: InterSystems IRIS for Health

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください