Skip to content

Commit

Permalink
sections change
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed Jan 25, 2024
1 parent b3e4f65 commit 8416eec
Show file tree
Hide file tree
Showing 29 changed files with 285 additions and 260 deletions.
Binary file modified ePICreator/Dovato.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Define the path to the PDF file
pdf_path = "../source-data/epi/pil.10637.pdf"
html_file_path = "../source-data/epi/pil.10637.md"
html_file_path = "./pil.10637.md"


# Open the PDF file
Expand Down
File renamed without changes.
Binary file modified ePICreator/tegretol.xlsx
Binary file not shown.
59 changes: 40 additions & 19 deletions ePICreator/templates/Composition.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,29 @@
{% if row["skip"] not in ['y', 'Y', 'x', 'X'] %}

{% set ns = namespace() %}
{% if row["language"] == "es"%}
{% set ns.title = "B. PROSPECTO" %}
{% set ns.user = "PROSPECTO: INFORMACIÓN PARA EL USUARIO" %}
{% set ns.leaflet = "Contenido del prospecto" %}
{% set ns.h1 = "1. Qué es "~row['name']~" y para qué se utiliza"%}

{% set ns.h2 = "2. Qué necesita saber antes de empezar a tomar " ~row['name'] %}
{% set ns.h3 = "3. Cómo tomar "~row['name'] %}
{% set ns.h4 = "4. Posibles efectos adversos" %}
{% set ns.h5 = "5. CONSERVACIÓN DE "~row['name'] %}
{% set ns.h6 = "6. Contenido del envase e información adicional" %}

{% else %}
{% set ns.title = "B. Package Leaflet" %}
{% set ns.user = "Package leaflet: Information for the user" %}
{% set ns.leaflet = "What is in this leaflet" %}
{% set ns.h1 = "1. What "~row['name']~" is and what it is used for" %}
{% set ns.h2 = "2. What you need to know before you take "~row['name'] %}
{% set ns.h3 = "3. How to take "~row['name'] %}
{% set ns.h4 = "4. Possible side effects" %}
{% set ns.h5 = "5. How to store "~row['name'] %}
{% set ns.h6 = "6. Contents of the pack and other information" %}
{% endif %}

Instance: composition-{{row["language"]}}-{{data["dictionary"]["productname"]| regex_replace('[^A-Za-z0-9]+', '')| create_hash_id}}
InstanceOf: CompositionUvEpi
Expand All @@ -13,7 +35,6 @@ Usage: #example
* identifier.system = "{{row['identifier_system']}}"

{% if row["identifier"]|string == "nan" %}
{% set ns = namespace() %}
{% set ns.one = "Composition" %}
{% set ns.two = data["dictionary"]["productname"]| regex_replace('[^A-Za-z0-9]+', '') %}
{% set ns.name_to_has= ns.one ~ ns.two %}
Expand Down Expand Up @@ -58,9 +79,9 @@ Usage: #example


* section[+].
* title = "B. Package Leaflet"
* title = "{{ns.title}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "B. PACKAGE LEAFLET"
* code.text = "{{ns.title}}"
* text.status = #additional
{% if row["package_leaflet"]|string == "nan" %}

Expand All @@ -76,9 +97,9 @@ Usage: #example


* section[=].section[+]
* title = "Package leaflet: Information for the user"
* title = "{{ns.user}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "Package leaflet: Information for the user"
* code.text = "{{ns.user}}"
* text.status = #additional
{% if row["information_user"]|string == "nan" %}

Expand All @@ -94,9 +115,9 @@ Usage: #example


* section[=].section[+]
* title = "What is in this leaflet"
* title = "{{ns.leaflet}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "What is in this leaflet"
* code.text = "{{ns.leaflet}}"
* text.status = #additional
{% if row["what_in_leaflet"]|string == "nan" %}

Expand All @@ -111,9 +132,9 @@ Usage: #example


* section[=].section[+]
* title = "1. What {{row['name']}} is and what it is used for"
* title = "{{ns.h1}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "1. What {{row['name']}} is and what it is used for"
* code.text = "{{ns.h1}}"
* text.status = #additional
{% if row["what_product_is"]|string == "nan" %}

Expand All @@ -130,9 +151,9 @@ Usage: #example


* section[=].section[+]
* title = "2. What you need to know before you take {{row['name']}}"
* title = "{{ns.h2}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "2. What you need to know before you take {{row['name']}}"
* code.text = "{{ns.h2}}"
* text.status = #additional
{% if row["before_take"]|string == "nan" %}

Expand All @@ -146,9 +167,9 @@ Usage: #example
{%- endif %}

* section[=].section[+]
* title = "3. How to take {{row['name']}}"
* title = "{{ns.h3}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "3. How to take {{row['name']}}"
* code.text = "{{ns.h3}}"
* text.status = #additional
{% if row["how_to_take"]|string == "nan" %}

Expand All @@ -163,9 +184,9 @@ Usage: #example


* section[=].section[+]
* title = "4. Possible side effects"
* title = "{{ns.h4}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "4. Possible side effects"
* code.text = "{{ns.h4}}"
* text.status = #additional
{% if row["side_effects"]|string == "nan" %}

Expand All @@ -179,9 +200,9 @@ Usage: #example
{%- endif %}

* section[=].section[+]
* title = "5. How to store {{row['name']}}"
* title = "{{ns.h5}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "5. How to store {{row['name']}}"
* code.text = "{{ns.h5}}"
* text.status = #additional
{% if row["how_to_store"]|string == "nan" %}

Expand All @@ -196,9 +217,9 @@ Usage: #example


* section[=].section[+]
* title = "6. Contents of the pack and other information"
* title = "{{ns.h6}}"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "6. Contents of the pack and other information"
* code.text = "{{ns.h6}}"
* text.status = #additional
{% if row["other_info"]|string == "nan" %}

Expand Down
Binary file modified ePICreator/xenical.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion input/fsh/examples/focusedEPI/Alicia_e_hypericum.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,4 @@ Usage: #example
* entry[0].resource = enhanced-compositionaf8d2f6e4772c29a8ef9fbb165e80d28


* insert 5116a09635abfdd54705a9c914657436BundleRuleset
* insert 2e9b255d9b94b05d362748d5716e558cBundleRuleset
2 changes: 1 addition & 1 deletion input/fsh/examples/focusedEPI/Pedro_e_hypericum.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,4 @@ Usage: #example
* entry[0].resource = enhanced-compositionaf8d2f6e4772c29a8ef9fbb165e80d28g


* insert 5116a09635abfdd54705a9c914657436BundleRuleset
* insert 2e9b255d9b94b05d362748d5716e558cBundleRuleset
2 changes: 1 addition & 1 deletion input/fsh/examples/processedEPI/p_hypericum.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,4 @@ Usage: #example
* entry[0].resource = processed-compositionaf8d2f6e4772c29a8ef9fbb165e80d28


* insert 5116a09635abfdd54705a9c914657436BundleRuleset
* insert 2e9b255d9b94b05d362748d5716e558cBundleRuleset
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@



Instance: composition-en-3b8585822d27945de47423af5de9824d
InstanceOf: CompositionUvEpi
Title: "Composition for Aquilea Articulaciones Colageno y Magnesio 375gr Package Leaflet"
Expand Down Expand Up @@ -39,7 +38,7 @@ Usage: #example
* section[+].
* title = "B. Package Leaflet"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "B. PACKAGE LEAFLET"
* code.text = "B. Package Leaflet"
* text.status = #additional
* text.div = """<div xmlns='http://www.w3.org/1999/xhtml'> This product is a OTC, epi pending </div>"""

Expand All @@ -65,9 +64,9 @@ Usage: #example


* section[=].section[+]
* title = "1. What Aquilea is and what it is used for"
* title = "1. What Aquilea is and what it is used for"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "1. What Aquilea is and what it is used for"
* code.text = "1. What Aquilea is and what it is used for"
* text.status = #additional
* text.div = """<div xmlns='http://www.w3.org/1999/xhtml'> Quisque posuere elit nec auctor imperdiet. Morbi id tortor nec odio molestie maximus. Phasellus id placerat velit. In ex enim, ultricies at maximus sit amet, luctus sit amet magna. Quisque in laoreet ligula, venenatis ultricies lectus. Quisque eleifend felis sed nulla consequat, eu tincidunt nisi gravida. Duis et lacinia ex. Aliquam pharetra vel metus at scelerisque. Integer ultricies dolor vestibulum nibh lacinia mollis. Ut tempor congue nulla eget molestie. </div>"""

Expand All @@ -81,7 +80,7 @@ Usage: #example
* text.div = """<div xmlns='http://www.w3.org/1999/xhtml'> Nunc velit ante, aliquet sed commodo ut, dictum eget lectus. Duis eu nulla ac dui pellentesque sodales. Curabitur pellentesque dolor metus, ut mollis est posuere sit amet. Praesent sagittis ligula vel est auctor congue. Duis varius ligula et faucibus porttitor. Ut placerat aliquet turpis, eget condimentum nibh porttitor ut. Morbi libero nisl, ullamcorper sit amet est a, dignissim rhoncus ante. Fusce suscipit enim et scelerisque vehicula. Suspendisse eu nulla porta, pharetra dolor et, blandit eros. Ut iaculis metus id purus scelerisque dignissim. Vivamus convallis placerat ex sit amet gravida. Nullam sed orci elit. Pellentesque tincidunt odio lacus, sit amet facilisis quam aliquam id. </div>"""

* section[=].section[+]
* title = "3. How to take Aquilea"
* title = "3. How to take Aquilea"
* code = https://spor.ema.europa.eu/rmswi/#100000155538
* code.text = "3. How to take Aquilea"
* text.status = #additional
Expand Down
Loading

0 comments on commit 8416eec

Please sign in to comment.