{"id":1513936,"date":"2024-09-04T12:18:05","date_gmt":"2024-09-04T12:18:05","guid":{"rendered":"https:\/\/davidcarralon.com\/herramientas\/generador-de-esquemas\/medicalschema"},"modified":"2026-06-10T10:38:00","modified_gmt":"2026-06-10T10:38:00","slug":"medicalschema","status":"publish","type":"page","link":"https:\/\/davidcarralon.com\/es\/herramientas\/generador-de-esquemas\/medicalschema","title":{"rendered":"Medical Schema"},"content":{"rendered":"\n<div class=\"jpsg-container\">\n\n    <h2>Medical Schema Generator<\/h2>\n        <p>My Schema tool will generate compliant Json-LD structured data based \n        on your required field. Each field will generate an item property<\/p>\n        \n        <div class=\"jpsg-buttons\">\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/website\"> Website<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/organization\"> Organization<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/breadcrumbs\"> Breadcrumbs<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/article\"> Article<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/localbusiness\"> Local Business<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/product\"> Product<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/event\">Event<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/video\">Video<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/recipe\">Recipe<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/aggregaterating\">Aggregate Rating<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/jobposting\">Job Postings<\/a> <\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/FAQ\">FAQ<\/a><\/button>\n            <button ><a href=\"https:\/\/davidcarralon.com\/tools\/schema-generator\/medicalschema\">Medical Schema<\/a><\/button>\n        <\/div>\n    <div class=\"row\">\n    <div class=\"column\" id=\"schema-output\">\n        <h3 id=\"generatedSchema\" style=\"display:none;\">Generated JSON-LD:<\/h3>\n        <h3 id=\"dataSample\">Structured data sample for \u2018Medical\u2019 Schema <\/h3>\n\n        <pre class=\"textDavid\" id=\"textDavid\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"MedicalWebPage\",\n  \"about\": {\n    \"@type\": \"MedicalCondition\",\n    \"name\": [\n      \"High Blood Pressure\",\n      \"hypertension\"\n    ]\n  },\n  \"mainContentOfPage\": [\n    \"Diagnosis\",\n    \"Treatment\"\n  ],\n  \"audience\": \"https:\/\/schema.org\/Patient\",\n  \"drug\": [\n    {\n      \"@type\": \"Drug\",\n      \"nonProprietaryName\": \"propanaolol\",\n      \"alternateName\": \"Innopran\"\n    },\n    {\n      \"@type\": \"Drug\",\n      \"nonProprietaryName\": \"atenolol\",\n      \"alternateName\": \"Tenormin\"\n    }\n ],\n \"lastReviewed\": \"2011-09-14\"\n}\n\n<\/pre>  \n        <pre class=\"schemapre\" id=\"schema-json\"><\/pre>\n        <button id=\"copyButton\" style=\"display:none;\">Copy JSON-LD<\/button>\n        <button id=\"validateSchema\" style=\"display:none;\"><a href=\"https:\/\/search.google.com\/test\/rich-results\" rel=\"noopener\">Validate(Google)<\/a><\/button>\n<\/div>\n        <div class=\"column\">\n            <form id=\"schema-form\">\n                <div class=\"form-group\">\n                    <label for=\"med-Con1\">Medical Condition 1:<\/label>\n                    <input type=\"text\" id=\"med-Con1\" name=\"medCon1\"  placeholder=\"Medical Condition 1\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"med-Con2\">Medical Condition 2:<\/label>\n                    <input type=\"text\" id=\"med-Con2\" name=\"medCon2\"  placeholder=\"Medical Condition 2\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"    \">Findings:<\/label>\n                    <select  name=\"med-Fin\" id=\"med-Fin\">\n                            <option value=\"-- Select --\">-- Select --<\/option>\n                            <option value=\"DIAGNOSIS\">DIAGNOSIS<\/option>\n                            <option value=\"TREATMENT\">TREATMENT<\/option>\n                    <\/select>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"med-Num1\">Medicine 1 Name:<\/label>\n                    <input type=\"text\" id=\"med-Num1\" name=\"medNum1\" placeholder=\"Medicine 1 Name\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"med-AlNum1\">Medicine 1 Alternate Name:<\/label>\n                    <input type=\"text\" id=\"med-AlNum1\" name=\"medAlNum1\" placeholder=\"Medicine 1 Alternate Name\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"med-Num2\">Medicine 2 Name:<\/label>\n                    <input type=\"text\" id=\"med-Num2\" name=\"medNum2\" placeholder=\"Medicine 2 Name\" required>\n                <\/div>\n\n                \n                <div class=\"form-group\">\n                    <label for=\"med-AlNum2\">Medicine 2 Alternate Name:<\/label>\n                    <input type=\"text\" id=\"med-AlNum2\" name=\"medAlNum1\" placeholder=\"Medicine 2 Alternate Name\" required>\n                <\/div>\n\n                <div class=\"form-group\">\n                    <label for=\"med-Rev\">Medical Last Reviewd:<\/label>\n                    <input type=\"text\" id=\"med-Rev\" name=\"medRev\" placeholder=\"Medical Last Reviewd\" required>\n                <\/div>\n\n                <!-- Add more fields as necessary -->\n                <div class=\"form-group\">\n                <button type=\"button\" onclick=\"generateSchema()\">Generate Schema<\/button>\n                <button type=\"reset\" id=\"reset\">Clear all<\/button>\n                <\/div>\n            <\/form>\n        <\/div>\n<\/div>\n\n <script>\n        function generateSchema() {\n\n            var medCon1 = document.getElementById('med-Con1').value;\n            var medCon2 = document.getElementById('med-Con2').value;\n            var medFin = document.getElementById('med-Fin').value;\n            var medNum1 = document.getElementById('med-Num1').value;\n            var medNum2 = document.getElementById('med-Num2').value;\n            var medAlNum1 = document.getElementById('med-AlNum1').value;\n            var medAlNum2 = document.getElementById('med-AlNum2').value;\n            var medRev = document.getElementById('med-Rev').value;\n            var medFin = document.getElementById('med-Fin').value;\n\n    \n\n            var schema = {\n                    \"@context\": \"https:\/\/schema.org\",\n                    \"@type\": \"MedicalWebPage\",\n                    \"about\": {\n                        \"@type\": \"MedicalCondition\",\n                        \"name\": [\n                            medCon1,\n                            medCon2\n                        ]\n                    },\n                    \"mainContentOfPage\": [\n                        medFin\n                    ],\n                    \"audience\": \"https:\/\/schema.org\/Patient\",\n                    \"drug\": [\n                        {\n                        \"@type\": \"Drug\",\n                        \"nonProprietaryName\": medCon1,\n                        \"alternateName\": medAlNum1\n                        },\n                        {\n                        \"@type\": \"Drug\",\n                        \"nonProprietaryName\": medCon1,\n                        \"alternateName\": medAlNum2\n                        }\n                    ],\n                    \"lastReviewed\": medFin\n            };     \n                 \n\n            document.getElementById('schema-json').textContent = JSON.stringify(schema, null, 2);\n            document.getElementById('generatedSchema').style.display = 'inline-block';\n            document.getElementById('copyButton').style.display = 'inline-block';\n            document.getElementById('validateSchema').style.display = 'inline-block';\n            document.getElementById('dataSample').style.display = 'none';\n            document.getElementById('textDavid').style.display = 'none';\n        }\n<\/script>\n\n<script>\n        \/\/ Enable\/Disable time inputs based on checkbox state\n        document.querySelectorAll('input[type=\"checkbox\"]').forEach(checkbox => {\n            checkbox.addEventListener('change', function () {\n                const timeInputs = this.parentElement.querySelectorAll('input[type=\"time\"]');\n                timeInputs.forEach(input => input.disabled = !this.checked);\n            });\n        });\n<\/script>\n\n<script>\n    document.getElementById('copyButton').addEventListener('click', function() {\n        \/\/ Get the text from the generated JSON-LD area\n        const jsonLdText = document.querySelector('#schema-json').innerText;\n\n        \/\/ Create a temporary textarea element to hold the text\n        const tempTextArea = document.createElement('textarea');\n        tempTextArea.value = jsonLdText;\n        document.body.appendChild(tempTextArea);\n\n        \/\/ Select the text and copy it to the clipboard\n        tempTextArea.select();\n        document.execCommand('copy');\n\n        \/\/ Remove the temporary textarea\n        document.body.removeChild(tempTextArea);\n\n        \/\/ Optional: Alert the user that the text has been copied\n        alert('JSON-LD copied to clipboard!');\n    });\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1464108,"parent":1513789,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"1":"page","2":"type-page","6":"entry"},"featured_image_src":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Medical-600x400.png","acf":[],"featured_image_src_square":"https:\/\/davidcarralon.com\/wp-content\/uploads\/Schema-Medical-600x600.png","_links":{"self":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/comments?post=1513936"}],"version-history":[{"count":1,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513936\/revisions"}],"predecessor-version":[{"id":1513937,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513936\/revisions\/1513937"}],"up":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/pages\/1513789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/media\/1464108"}],"wp:attachment":[{"href":"https:\/\/davidcarralon.com\/es\/wp-json\/wp\/v2\/media?parent=1513936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}