{"id":35024,"date":"2021-08-25T08:52:53","date_gmt":"2021-08-25T12:52:53","guid":{"rendered":"https:\/\/dormalab.com\/confirmation-rendez-vous\/"},"modified":"2026-02-13T11:47:46","modified_gmt":"2026-02-13T16:47:46","slug":"confirmation-rendez-vous","status":"publish","type":"page","link":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/","title":{"rendered":"Confirmation de rendez-vous"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"35024\" class=\"elementor elementor-35024 elementor-35021\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5e5719e e-flex e-con-boxed e-con e-parent\" data-id=\"5e5719e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6dfe77b elementor-widget elementor-widget-html\" data-id=\"6dfe77b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<head>\n    <!-- Required meta tags -->\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/moment.js\/2.29.1\/moment.min.js\"\n        integrity=\"sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==\"\n        crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"><\/script>\n    <!-- Bootstrap CSS -->\n    <link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.0.1\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\"\n        integrity=\"sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x\" crossorigin=\"anonymous\">\n    <script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js\"><\/script>\n    <link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/5.15.3\/css\/all.min.css\"\n        integrity=\"sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM\/gI1w==\"\n        crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" \/>\n    <style>\n        .font-weight-bold {\n            font-weight: 600;\n        }\n    <\/style>\n\n<\/head>\n<script>\n    jQuery(document).ready(function () {\n        \/\/jQuery(\"#confirmationText\").hide();\n        \/\/jQuery(\"#errorText\").hide();\n        \/\/jQuery(\"#calendarLinks\").hide();\n        var url_string = window.location.href\n        var url = new URL(url_string);\n        var appointmentId = url.searchParams.get(\"appointmentId\");\n        \/\/appointmentId = \"a0W5e000000tuDXEAY\"\n        if (!appointmentId) {\n            jQuery(\"#loadingDiv\").hide();\n            jQuery(\"#errorText\").text(\n                \"Une erreur a eu lieu et votre rendez-vous n'a pas \u00e9t\u00e9 r\u00e9serv\u00e9. SVP essayer \u00e0 nouveau ou appelez-nous au 514-504-2078.\"\n            );\n            jQuery(\"#errorText\").show();\n            return;\n        }\n        console.log(\"getting appointmentID from url: \" + appointmentId);\n        let postBody = JSON.stringify({\n            clinic: 'Dorma',\n            status: 'Confirmed'\n        });\n        jQuery.ajax({\n            url: 'https:\/\/api.summittravelhealthdev.com\/v1\/appointment\/' + appointmentId + '\/confirmAppointment',\n            type: 'POST',\n            data: postBody,\n            contentType: 'application\/json',\n            dataType: 'json'\n        }).done(function (response) {\n                try {\n                    var data = (typeof response === 'string') ? JSON.parse(response) : response;\n                    if (!data || !data[0] || !data[0].BKSLB__Start_Date__c) {\n                        throw new Error('Unexpected API response format');\n                    }\n                    let startDate = data[0].BKSLB__Start_Date__c.substr(0, 10);\n                    let startTime = moment(data[0].BKSLB__Start_Date__c).format('HH:mm');\n                    \/\/ let startTime = data[0].BKSLB__Start_Date__c.substr(11, 5);\n                    var subbed = new Date(data[0].BKSLB__Start_Date__c);\n                    console.log(\"subbec\", subbed);\n                    \/\/ let startTime = subbed.getHours() + ':' + subbed.getMinutes();\n                    console.log(\"start time\", startTime)\n\n                    let confirmationText = \"<h3>Votre rendez-vous est confirm\u00e9<\/h3><p>Votre rendez-vous \u00e0 <b>\" + startTime + \"<\/b> le <b>\" + startDate +\n                        \"<\/b> \u00e0 notre clinique de \" + data[0].BKSLB__Location__r.Name +\n                        \" a \u00e9t\u00e9 confirm\u00e9. SVP arrivez 5 minutes d'avance au <b>\" + data[0]\n                            .Street_Address__c +\n                        \"<\/b> <\/p>\"\n                    \/\/ alert(\"success\");\n                    console.log(data);\n                    jQuery(\"#loadingDiv\").hide();\n                    jQuery(\"#confirmationText\").html(confirmationText);\n                    jQuery(\"#confirmationText\").show();\n                } catch (err) {\n                    console.error('Error handling confirm response:', err);\n                    jQuery(\"#loadingDiv\").hide();\n                    jQuery(\"#errorText\").show();\n                }\n            }).fail(function (response) {\n                \/\/alert('Error: ' + response.responseText);\n                jQuery(\"#errorText\").show();\n                jQuery(\"#loadingDiv\").hide();\n            });\n\n    });\n<\/script>\n\n<div class=\"container\">\n    <div id=\"loadingDiv\" class=\"row\" style=\"text-align:center\">\n        <div style=\"margin-bottom:20px\" class=\"fa-3x\"> <i class=\"fas fa-spinner fa-pulse\"><\/i><\/div>\n        <p>Confirmation de rendez-vous...<\/p>\n    <\/div>\n    <div id=\"errorText\" style=\"display:none; text-align:center\">Une erreur a eu lieu et votre rendez-vous n'a pa \u00e9t\u00e9\n        r\u00e9serv\u00e9. SVP essayer \u00e0\n        nouveau ou appelez nous au 514-504-2078.<\/div>\n    <div id=\"confirmationText\" class=\"row\" style=\"display:none; text-align:center;\">\n\n    <\/div>\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Confirmation de rendez-vous&#8230; Une erreur a eu lieu et votre rendez-vous n&rsquo;a pa \u00e9t\u00e9 r\u00e9serv\u00e9. SVP essayer \u00e0 nouveau ou appelez nous au 514-504-2078.<\/p>\n","protected":false},"author":20,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-35024","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Confirmation de rendez-vous - Dorma Sleep Clinics<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Confirmation de rendez-vous - Dorma Sleep Clinics\" \/>\n<meta property=\"og:description\" content=\"Confirmation de rendez-vous&#8230; Une erreur a eu lieu et votre rendez-vous n&rsquo;a pa \u00e9t\u00e9 r\u00e9serv\u00e9. SVP essayer \u00e0 nouveau ou appelez nous au 514-504-2078.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/\" \/>\n<meta property=\"og:site_name\" content=\"Dorma Sleep Clinics\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-13T16:47:46+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/confirmation-rendez-vous\\\/\",\"url\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/confirmation-rendez-vous\\\/\",\"name\":\"Confirmation de rendez-vous - Dorma Sleep Clinics\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/#website\"},\"datePublished\":\"2021-08-25T12:52:53+00:00\",\"dateModified\":\"2026-02-13T16:47:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/confirmation-rendez-vous\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/dormalab.com\\\/fr\\\/confirmation-rendez-vous\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/confirmation-rendez-vous\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Confirmation de rendez-vous\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/\",\"name\":\"Dorma Sleep Clinics\",\"description\":\"Sleep Well Live Well\",\"publisher\":{\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/#organization\",\"name\":\"Dorma Clinique Du Sommeil\",\"url\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/dormalab.com\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/Dorma-Logotype-RGB-Black-scaled-e1578787470924.png\",\"contentUrl\":\"https:\\\/\\\/dormalab.com\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/Dorma-Logotype-RGB-Black-scaled-e1578787470924.png\",\"width\":120,\"height\":25,\"caption\":\"Dorma Clinique Du Sommeil\"},\"image\":{\"@id\":\"https:\\\/\\\/dormalab.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Confirmation de rendez-vous - Dorma Sleep Clinics","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/","og_locale":"fr_FR","og_type":"article","og_title":"Confirmation de rendez-vous - Dorma Sleep Clinics","og_description":"Confirmation de rendez-vous&#8230; Une erreur a eu lieu et votre rendez-vous n&rsquo;a pa \u00e9t\u00e9 r\u00e9serv\u00e9. SVP essayer \u00e0 nouveau ou appelez nous au 514-504-2078.","og_url":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/","og_site_name":"Dorma Sleep Clinics","article_modified_time":"2026-02-13T16:47:46+00:00","twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/","url":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/","name":"Confirmation de rendez-vous - Dorma Sleep Clinics","isPartOf":{"@id":"https:\/\/dormalab.com\/fr\/#website"},"datePublished":"2021-08-25T12:52:53+00:00","dateModified":"2026-02-13T16:47:46+00:00","breadcrumb":{"@id":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dormalab.com\/fr\/confirmation-rendez-vous\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dormalab.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Confirmation de rendez-vous"}]},{"@type":"WebSite","@id":"https:\/\/dormalab.com\/fr\/#website","url":"https:\/\/dormalab.com\/fr\/","name":"Dorma Sleep Clinics","description":"Sleep Well Live Well","publisher":{"@id":"https:\/\/dormalab.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dormalab.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/dormalab.com\/fr\/#organization","name":"Dorma Clinique Du Sommeil","url":"https:\/\/dormalab.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dormalab.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/dormalab.com\/wp-content\/uploads\/2019\/10\/Dorma-Logotype-RGB-Black-scaled-e1578787470924.png","contentUrl":"https:\/\/dormalab.com\/wp-content\/uploads\/2019\/10\/Dorma-Logotype-RGB-Black-scaled-e1578787470924.png","width":120,"height":25,"caption":"Dorma Clinique Du Sommeil"},"image":{"@id":"https:\/\/dormalab.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/pages\/35024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/comments?post=35024"}],"version-history":[{"count":3,"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/pages\/35024\/revisions"}],"predecessor-version":[{"id":42621,"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/pages\/35024\/revisions\/42621"}],"wp:attachment":[{"href":"https:\/\/dormalab.com\/fr\/wp-json\/wp\/v2\/media?parent=35024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}