-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test cases for conceptmap validation
- Loading branch information
Grahame Grieve
committed
Sep 5, 2023
1 parent
3e7df8c
commit 66827fa
Showing
5 changed files
with
288 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"resourceType" : "CodeSystem", | ||
"id" : "ch-ig-example", | ||
"text" : { | ||
"status" : "generated", | ||
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>" | ||
}, | ||
"url" : "http://fhir.ch/ig/ch-ig/CodeSystem/ch-ig-example", | ||
"version" : "0.1.0", | ||
"name" : "ChIgExample", | ||
"title" : "CH IG Example", | ||
"status" : "draft", | ||
"experimental" : true, | ||
"date" : "2023-09-05T12:08:22+00:00", | ||
"publisher" : "HL7 Switzerland", | ||
"contact" : [{ | ||
"name" : "HL7 Switzerland", | ||
"telecom" : [{ | ||
"system" : "url", | ||
"value" : "https://www.hl7.ch/" | ||
}] | ||
}], | ||
"description" : "CH IG Example code system is just an example!", | ||
"jurisdiction" : [{ | ||
"coding" : [{ | ||
"system" : "urn:iso:std:iso:3166", | ||
"code" : "CHE" | ||
}] | ||
}], | ||
"copyright" : "CC0-1.0", | ||
"caseSensitive" : true, | ||
"content" : "complete", | ||
"count" : 3, | ||
"concept" : [{ | ||
"code" : "med", | ||
"display" : "Example med" | ||
}, | ||
{ | ||
"code" : "pharm", | ||
"display" : "Example pharm" | ||
}, | ||
{ | ||
"code" : "vac", | ||
"display" : "Example vac" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"resourceType" : "ValueSet", | ||
"id" : "OrganizationType", | ||
"text" : { | ||
"status" : "generated", | ||
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>" | ||
}, | ||
"url" : "http://fhir.ch/ig/ch-ig/ValueSet/ch-ig-example", | ||
"version" : "0.1.0", | ||
"name" : "OrganizationType", | ||
"title" : "Organization Type", | ||
"status" : "draft", | ||
"experimental" : true, | ||
"date" : "2023-09-05T12:08:22+00:00", | ||
"publisher" : "HL7 Switzerland", | ||
"contact" : [{ | ||
"name" : "HL7 Switzerland", | ||
"telecom" : [{ | ||
"system" : "url", | ||
"value" : "https://www.hl7.ch/" | ||
}] | ||
}], | ||
"description" : "Test value set", | ||
"jurisdiction" : [{ | ||
"coding" : [{ | ||
"system" : "urn:iso:std:iso:3166", | ||
"code" : "CHE" | ||
}] | ||
}], | ||
"copyright" : "CC0-1.0", | ||
"compose" : { | ||
"include" : [{ | ||
"system" : "http://fhir.ch/ig/ch-ig/CodeSystem/ch-ig-example", | ||
"concept" : [{ | ||
"code" : "pharm" | ||
}, | ||
{ | ||
"code" : "vac" | ||
}] | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"resourceType" : "ValueSet", | ||
"id" : "OrganizationType", | ||
"text" : { | ||
"status" : "generated", | ||
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>" | ||
}, | ||
"url" : "http://fhir.ch/ig/ch-ig/ValueSet/OrganizationType", | ||
"version" : "0.1.0", | ||
"name" : "OrganizationType", | ||
"title" : "Organization Type", | ||
"status" : "draft", | ||
"experimental" : true, | ||
"date" : "2023-09-05T12:08:22+00:00", | ||
"publisher" : "HL7 Switzerland", | ||
"contact" : [{ | ||
"name" : "HL7 Switzerland", | ||
"telecom" : [{ | ||
"system" : "url", | ||
"value" : "https://www.hl7.ch/" | ||
}] | ||
}], | ||
"description" : "Test value set", | ||
"jurisdiction" : [{ | ||
"coding" : [{ | ||
"system" : "urn:iso:std:iso:3166", | ||
"code" : "CHE" | ||
}] | ||
}], | ||
"copyright" : "CC0-1.0", | ||
"compose" : { | ||
"include" : [{ | ||
"system" : "http://snomed.info/sct", | ||
"version" : "http://snomed.info/sct/2011000195101", | ||
"concept" : [{ | ||
"code" : "288565001", | ||
"display" : "Medical center (environment)" | ||
}, | ||
{ | ||
"code" : "264372000", | ||
"display" : "Pharmacy (environment)" | ||
}] | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"resourceType" : "ConceptMap", | ||
"id" : "OrganizationTypeToTest", | ||
"text" : { | ||
"status" : "extensions", | ||
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>" | ||
}, | ||
"url" : "http://fhir.ch/ig/ch-ig/ConceptMap/OrganizationTypeToTest", | ||
"version" : "0.1.0", | ||
"name" : "OrganizationType", | ||
"title" : "Organization Type Mapping", | ||
"status" : "active", | ||
"experimental" : true, | ||
"date" : "2023-09-05T12:08:22+00:00", | ||
"publisher" : "HL7 Switzerland", | ||
"contact" : [{ | ||
"name" : "HL7 Switzerland", | ||
"telecom" : [{ | ||
"system" : "url", | ||
"value" : "https://www.hl7.ch/" | ||
}] | ||
}], | ||
"description" : "Test ConceptMap", | ||
"jurisdiction" : [{ | ||
"coding" : [{ | ||
"system" : "urn:iso:std:iso:3166", | ||
"code" : "CHE" | ||
}] | ||
}], | ||
"copyright" : "CC0-1.0", | ||
"sourceCanonical" : "http://fhir.ch/ig/ch-ig/ValueSet/ch-ig-example", | ||
"targetCanonical" : "http://fhir.ch/ig/ch-ig/ValueSet/OrganizationType", | ||
"group" : [{ | ||
"source" : "http://fhir.ch/ig/ch-ig/CodeSystem/ch-ig-example", | ||
"target" : "http://snomed.info/sct", | ||
"targetVersion" : "http://snomed.info/sct/2011000195101", | ||
"element" : [{ | ||
"code" : "med", | ||
"target" : [{ | ||
"code" : "264358009", | ||
"equivalence" : "equivalent" | ||
}] | ||
}, | ||
{ | ||
"code" : "vac", | ||
"target" : [{ | ||
"code" : "46224007", | ||
"equivalence" : "equivalent" | ||
}] | ||
}, | ||
{ | ||
"code" : "pharm", | ||
"target" : [{ | ||
"code" : "264372000", | ||
"equivalence" : "equivalent" | ||
}] | ||
}] | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters