Skip to content

Commit

Permalink
mid reference
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed Dec 5, 2023
1 parent 240fa41 commit b11aa30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
9 changes: 6 additions & 3 deletions ePICreator/templates/PackagedProductDefinition.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Usage: #example


* packaging
* identifier.system = $spor-prod
* identifier.value = "mock-id"
// * identifier.system = $spor-prod
// * identifier.value = "mock-id"
* quantity = 1
* type = $spor-rms#100000073498 "Box"
* material = $spor-rms#200000003529 "Cardboard"
Expand All @@ -50,9 +50,12 @@ Usage: #example

* identifier.system = $spor-prod
* identifier.value = "{{ row["packaging_identifier"] }}"
{% endif %}
{%- if data["turn"] != "1" %}
* containedItem.item.reference = Reference({{data["references"]["ManufacturedItemDefinition"][0][0]}})
{% endif %}
* type = $spor-rms#{{ row["Packaging_typeID"] }} "{{ row["Packaging_type"] }}"
//* quantity = {{ row["packaging_quantity"] }}

{{ "* quantity = {}".format(row.packaging_quantity) if row.packaging_quantity|string !="nan"}}
{{ "* material = $spor-rms#{} \"{}\"".format(row.packaging_materialID,row.packaging_material) if row.packaging_material|string !="nan"}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,19 @@ Usage: #example

* part[0]
* part = "acme"
* type = $spor-productNamePartType-cs#220000000002
* type.text = "Invented name part"
* type = $spor-productNamePartType-cs#220000000002 "Invented name part"

* part[+]
* part = "acmedrug"
* type = $spor-productNamePartType-cs#220000000003
* type.text = "Scientific name part"
* type = $spor-productNamePartType-cs#220000000003 "Scientific name part"

* part[+]
* part = "75 mg"
* type = $spor-productNamePartType-cs#220000000004
* type.text = "Strength part"
* type = $spor-productNamePartType-cs#220000000004 "Strength part"

* part[+]
* part = "tablet"
* type = $spor-productNamePartType-cs#220000000005
* type.text = "Pharmaceutical dose form part"
* type = $spor-productNamePartType-cs#220000000005 "Pharmaceutical dose form part"

* usage
* country = urn:iso:std:iso:3166#DK "Denmark"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Usage: #example


* packaging
* identifier.system = $spor-prod
* identifier.value = "mock-id"
// * identifier.system = $spor-prod
// * identifier.value = "mock-id"
* quantity = 1
* type = $spor-rms#100000073498 "Box"
* material = $spor-rms#200000003529 "Cardboard"
Expand All @@ -37,8 +37,9 @@ Usage: #example

* identifier.system = $spor-prod
* identifier.value = "654321"
* containedItem.item.reference = Reference(mid-14ba4cb05b11f838919ef39edd3e0cdf)
* type = $spor-rms#100000073504 "Child-resistant closure"
//* quantity = 1

* quantity = 1
* material = $spor-rms#200000003529 "Cardboard"

Expand Down Expand Up @@ -84,8 +85,8 @@ Usage: #example


* packaging
* identifier.system = $spor-prod
* identifier.value = "mock-id"
// * identifier.system = $spor-prod
// * identifier.value = "mock-id"
* quantity = 1
* type = $spor-rms#100000073498 "Box"
* material = $spor-rms#200000003529 "Cardboard"
Expand All @@ -94,8 +95,9 @@ Usage: #example

* identifier.system = $spor-prod
* identifier.value = "654321"
* containedItem.item.reference = Reference(mid-14ba4cb05b11f838919ef39edd3e0cdf)
* type = $spor-rms#100000073504 "Child-resistant closure"
//* quantity = 1

* quantity = 1
* material = $spor-rms#200000003529 "Cardboard"

Expand Down

0 comments on commit b11aa30

Please sign in to comment.