Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ProducentId to organization #116

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions input/fsh/DkCoreOrganization.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Description: "HL7 Denmark core profile for a danish health organization"
Ydernummer 0..1 and
CVR-ID 0..1 and
Kommunekode 0..1 and
Regionskode 0..1
Regionskode 0..1 and
ProducentID 0..1
* identifier[EAN-ID] only GLNIdentifier
* ^short = "GLN identifier, [DA] EAN-nummer"
* identifier[SOR-ID] only SORIdentifier
Expand All @@ -37,6 +38,8 @@ Description: "HL7 Denmark core profile for a danish health organization"
* system 1..
* system = "http://hl7.dk/fhir/core/CodeSystem/dk-core-regional-subdivision-codes" (exactly)
* value 1..
* identifier[ProducentID] only ProducentId
* ^short = "[DA] Producent Id"
* type from $sor-organization-type (preferred)

Instance: CenterForDiabetes
Expand Down Expand Up @@ -115,7 +118,18 @@ Usage: #example
* identifier[=].value = "urn:uuid:a107fd1e-9f35-422c-9d1e-add097bbf4a6"
* type = $sct#264372000

Instance: 154b8c96-a061-45bf-9ce4-1947c7c3c283
InstanceOf: DkCoreOrganization
Title: "Producer Test Organization"
Description: "Producer of Lab Results Test Organization"
Usage: #example
* identifier[0].system = "urn:oid:1.2.208.176.1.1"
* identifier[=].value = "12345678901"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a valid SOR Identifier

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* identifier[+].system = "http://medcomfhir.dk/ig/terminology/CodeSystem/MedComProducentID"
jkiddo marked this conversation as resolved.
Show resolved Hide resolved
* identifier[=].value = "KAF"
* type = $sct#264361005

Invariant: dk-core-organization-mandatory-identifier
Description: "Minimum one identifier shall be of type SOR-ID, KOMBIT-ORG-ID or CVR-ID"
Severity: #error
Expression: "identifier.where(system='urn:oid:1.2.208.176.1.1' or system='https://kombit.dk/sts/organisation' or system='urn:oid:2.16.840.1.113883.2.24.1.1').exists()"
Expression: "identifier.where(system='urn:oid:1.2.208.176.1.1' or system='https://kombit.dk/sts/organisation' or system='urn:oid:2.16.840.1.113883.2.24.1.1').exists()"
9 changes: 9 additions & 0 deletions input/fsh/ProducentId.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Profile: ProducentId
Parent: Identifier
Id: dk-core-producent-id
Title: "Producent Id"
Description: "Offical MedCom code describing the producer of lab results"
* use = #official (exactly)
* system 1..
* system = "http://medcomfhir.dk/ig/terminology/CodeSystem/MedComProducentID" (exactly)
* value 1..
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Please notice, that an organization shall always have at least one identifier. S
- *CVR identifier*: an official company identifier for Danish companies.
- *Kommunal identifier*: the official identifier for a Danish municipality.
- *Regional identifier*: the official organization identifier for a Danish region.
- *Producent identifier*: the identifier used for the producer of laboratory result.

#### Representing a general practitioner

Expand Down
Loading