Skip to content

Commit

Permalink
update url and package name
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira committed Nov 14, 2023
1 parent 397fcf4 commit 83b44b2
Show file tree
Hide file tree
Showing 49 changed files with 81 additions and 886 deletions.
6 changes: 3 additions & 3 deletions ig.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[IG]
ig = fsh-generated/resources/ImplementationGuide-who.fhir.smart-immunizations-measles.json
ig = fsh-generated/resources/ImplementationGuide-smart.who.int.immunization-measles.json

#template = #local-template
template = who.fhir.template#current
template = #local-template
#template = who.fhir.template#current
28 changes: 14 additions & 14 deletions input/cql/IMMZConcepts.cql
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@ codesystem "ICHI": 'https://mitel.dimi.uniud.it/ichi/#http://id.who.int/ichi'
codesystem "ICF": 'http://hl7.org/fhir/sid/icf-nl'
codesystem "Extended Codes CodeSystem codes": 'http://fhir.org/guides/who/anc-cds/CodeSystem/anc-custom-codes'

codesystem "IMMZ.C": 'http://smart.who.int/smart-immunizations-measles/CodeSystem/IMMZ.C'
codesystem "IMMZ.D1": 'http://smart.who.int/smart-immunizations-measles/CodeSystem/IMMZ.D1'
codesystem "IMMZ.D4": 'http://smart.who.int/smart-immunizations-measles/CodeSystem/IMMZ.D4'
codesystem "IMMZ.C": 'http://smart.who.int/immunizations-measles/CodeSystem/IMMZ.C'
codesystem "IMMZ.D1": 'http://smart.who.int/immunizations-measles/CodeSystem/IMMZ.D1'
codesystem "IMMZ.D4": 'http://smart.who.int/immunizations-measles/CodeSystem/IMMZ.D4'

//WHO ATC IPS Valueset
valueset "WHO ATC": 'http://hl7.org/fhir/uv/ips/ValueSet/whoatc-uv-ips'

// General use ValueSets
valueset "Negative Result": 'http://smart.who.int/smart-immunizations-measles/ValueSet/Negativetestresult-values'
valueset "Positive Result": 'http://smart.who.int/smart-immunizations-measles/ValueSet/PositiveTestResult-values'
valueset "Immunocompromised": 'http://smart.who.int/smart-immunizations-measles/ValueSet/Immunocompromised-values'
valueset "Patient birth weight observation value": 'http://smart.who.int/smart-immunizations-measles/ValueSet/Birthweight-values'
valueset "PretermBirth": 'http://smart.who.int/smart-immunizations-measles/ValueSet/Preterm-values'
valueset "Live Attenuated": 'http://smart.who.int/smart-immunizations-measles/ValueSet/LiveAttenduatedVaccines'
valueset "Negative Result": 'http://smart.who.int/immunizations-measles/ValueSet/Negativetestresult-values'
valueset "Positive Result": 'http://smart.who.int/immunizations-measles/ValueSet/PositiveTestResult-values'
valueset "Immunocompromised": 'http://smart.who.int/immunizations-measles/ValueSet/Immunocompromised-values'
valueset "Patient birth weight observation value": 'http://smart.who.int/immunizations-measles/ValueSet/Birthweight-values'
valueset "PretermBirth": 'http://smart.who.int/immunizations-measles/ValueSet/Preterm-values'
valueset "Live Attenuated": 'http://smart.who.int/immunizations-measles/ValueSet/LiveAttenduatedVaccines'

//valueset "Target Disease": 'http://hl7.org/fhir/ValueSet/immunization-target-disease'

valueset "HIV status": 'http://smart.who.int/smart-immunizations-measles/ValueSet/HIVstatus-values'
valueset "HIV status": 'http://smart.who.int/immunizations-measles/ValueSet/HIVstatus-values'
valueset "HIV status - HIV positive Choices": 'http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de46'
valueset "HIV status - HIV negative Choices": 'http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de47'

valueset "ARV Drugs": 'http://smart.who.int/smart-immunizations-measles/ValueSet/ARVDrugs-values'
valueset "ARV Drugs": 'http://smart.who.int/immunizations-measles/ValueSet/ARVDrugs-values'

// Vaccine Value Sets

valueset "MCV Vaccine": 'http://smart.who.int/smart-immunizations-measles/ValueSet/IMMZ.A1.DE9'
valueset "MCV Vaccine": 'http://smart.who.int/immunizations-measles/ValueSet/IMMZ.A1.DE9'

// Plugin is complaining about not finding these so that should be resolved, but here until it can be fixed
valueset "BCG Vaccine": 'http://smart.who.int/smart-immunizations-measles/ValueSet/IMMZ.A1.DE1'
valueset "Cholera Vaccine": 'http://smart.who.int/smart-immunizations-measles/ValueSet/IMMZ.A1.DE2'
valueset "BCG Vaccine": 'http://smart.who.int/immunizations-measles/ValueSet/IMMZ.A1.DE1'
valueset "Cholera Vaccine": 'http://smart.who.int/immunizations-measles/ValueSet/IMMZ.A1.DE2'



Expand Down
2 changes: 1 addition & 1 deletion input/fsh/activitydefinitions/IMMZD2DTMeaslesCIMR.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: "IMMZ.D2.DT.Measles.Contraindication"
Description: "Provide measles immunization"
Usage: #definition

* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZD2DTMeasles"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZD2DTMeasles"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/activitydefinitions/IMMZD2DTMeaslesEval.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: "IMMZ.D2.DT.Measles.Eval"
Description: "Provide measles immunization"
Usage: #definition

* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZD2DTMeasles"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZD2DTMeasles"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/activitydefinitions/IMMZD2DTMeaslesMR.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: "IMMZ.D2.DT.Measles.MR"
Description: "Provide measles immunization"
Usage: #definition

* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZD2DTMeasles"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZD2DTMeasles"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/codesystems/VaccineProducts.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: "Vaccine Product codes, containing the different available products

* ^property[+].code = #classification
* ^property[=].type = #code
* ^property[=].uri = "http://smart.who.int/smart-immunizations-measles#classification"
* ^property[=].uri = "http://smart.who.int/immunizations-measles#classification"

* #20009060/2 "Serum Institute of India Measles vaccine"
* ^property[+].code = #classification
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/FHIRCommon.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "FHIRCommon"
Description: "This library defines terminologies and functions commonly used in FHIR-based CQL artifacts"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/FHIRCommon"
* url = "http://smart.who.int/immunizations-measles/Library/FHIRCommon"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/FHIRHelpers.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "FHIRHelpers"
Description: "This library defines functions to convert between FHIR data types and CQL system-defined types, as well as functions to support FHIRPath implementation. For more information, the FHIRHelpers wiki page: https://github.com/cqframework/clinical_quality_language/wiki/FHIRHelpers"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/FHIRHelpers"
* url = "http://smart.who.int/immunizations-measles/Library/FHIRHelpers"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZCommon.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZCommon"
Description: "This library defines common terminologies and functions used throughout the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZCommon"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZCommon"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZCommonIzDataElements.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZCommonIzDataElements"
Description: "This library defines common terminologies and functions used throughout the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZCommonIzDataElements"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZCommonIzDataElements"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZConcepts.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZConcepts"
Description: "This library defines concepts used throughout the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZConcepts"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZConcepts"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZConfig.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZConfig"
Description: "This library defines configuration points for the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZConfig"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZConfig"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZD2DTMeaslesLogic.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZD2DTMeaslesLogic"
Description: "This library defines decision support logic for the D2.DT.Measles decision table in the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZD2DTMeaslesLogic"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZD2DTMeaslesLogic"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZDT08.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZDT08"
Description: "This library defines decision support logic for the IMMZ.DT.08 decision table in the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZDT08"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZDT08"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZIND08.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZIND08"
Description: "This library defines population criteria for the IND.08 indicator in the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZIND08"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZIND08"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZINDMeasles.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZINDMeasles"
Description: "This library defines population criteria for the Measles indicator in the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZINDMeasles"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZINDMeasles"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZIndicatorCommon.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZIndicatorCommon"
Description: "This library defines common terminologies and functions used throughout the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZIndicatorCommon"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZIndicatorCommon"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/IMMZVaccineLibrary.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "IMMZVaccineLibrary"
Description: "This library defines logic and mappings for the use of vaccines in the Immunization CPG"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/IMMZVaccineLibrary"
* url = "http://smart.who.int/immunizations-measles/Library/IMMZVaccineLibrary"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/WHOCommon.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "WHOCommon"
Description: "This library defines common terminologies and functions used throughout WHO SMART Guidelines content"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/WHOCommon"
* url = "http://smart.who.int/immunizations-measles/Library/WHOCommon"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/libraries/WHOConcepts.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ InstanceOf: Library
Title: "WHOConcepts"
Description: "This library defines common concepts used throughout WHO SMART Guidelines content"
Usage: #definition
* url = "http://smart.who.int/smart-immunizations-measles/Library/WHOConcepts"
* url = "http://smart.who.int/immunizations-measles/Library/WHOConcepts"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/measures/IMMZIND05.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ InstanceOf: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cv-measure-cq
Title: "IMMZIND05"

* description = "IMMZ.IND.05 Measles indicator for first dose."
* url = "http://smart.who.int/smart-immunizations-measles/Measure/IMMZIND05"
* url = "http://smart.who.int/immunizations-measles/Measure/IMMZIND05"
* version = "0.1.0"
* status = #draft
* experimental = false
* date = "2023-10-05"
* name = "IMMZIND05"
* publisher = "World Health Organization (WHO)"
* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZINDMeasles"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZINDMeasles"
* scoring = $measure-scoring#continuous-variable "Continuous Variable"
* group[+]
* population[initialPopulation]
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/measures/IMMZIND40.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ InstanceOf: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cv-measure-cq
Title: "IMMZIND40"

* description = "IMMZ.IND.40 Measles indicator for second dose."
* url = "http://smart.who.int/smart-immunizations-measles/Measure/IMMZIND40"
* url = "http://smart.who.int/immunizations-measles/Measure/IMMZIND40"
* version = "0.1.0"
* status = #draft
* experimental = false
* date = "2023-10-05"
* name = "IMMZIND40"
* publisher = "World Health Organization (WHO)"
* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZINDMeasles"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZINDMeasles"
* scoring = $measure-scoring#continuous-variable "Continuous Variable"
* group[+]
* population[initialPopulation]
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/plandefinitions/IMMZD2DTMeasles.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: "IMMZ.D2.DT.Measles"
Description: "If the child or patient has not been given MCV1 (at 9 months) and MCV2 (between 15-18 months) vaccination"
Usage: #definition

* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZD2DTMeaslesLogic"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZD2DTMeaslesLogic"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/plandefinitions/IMMZD2DTMeaslesCI.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: "IMMZ.D2.DT.Measles.Contraindication"
Description: "Check contraindications for Measles vaccine"
Usage: #definition

* library = "http://smart.who.int/smart-immunizations-measles/Library/IMMZD2DTMeasles"
* library = "http://smart.who.int/immunizations-measles/Library/IMMZD2DTMeasles"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/questionnaires/QIMMZCRegisterClient.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Usage: #definition
//* contained[+] = YesNoUnknown

* extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap"
* extension[=].valueCanonical = "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZCQRToPatient"
* extension[=].valueCanonical = "http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToPatient"


//Header
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/questionnaires/QIMMZD1ClientHistoryMeasles.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Usage: #definition
* contained[+] = IMMZ.D1.DE10

* extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap"
* extension[=].valueCanonical = "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZD1QRToResources"
* extension[=].valueCanonical = "http://smart.who.int/immunizations-measles/StructureMap/IMMZD1QRToResources"


* insert Question(dose0, Indicates if the client has received a supplementary dose, boolean, false, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Usage: #definition
* contained[+] = IMMZ.D4.DE161

* extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap"
* extension[=].valueCanonical = "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZD4QRToResources"
* extension[=].valueCanonical = "http://smart.who.int/immunizations-measles/StructureMap/IMMZD4QRToResources"


//* insert Question(contraindications, Specific situations or medical conditions in which it is advised or recommended to avoid or delay administering a particular vaccine, choice, false, true)
Expand Down
6 changes: 3 additions & 3 deletions input/maps/IMMZCLMToPatient.fml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
map "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZCLMToPatient" = "IMMZCLMToPatient"
map "http://smart.who.int/immunizations-measles/StructureMap/IMMZCLMToPatient" = "IMMZCLMToPatient"
// Immunization Client Registry - Transform Logical Model to Patient resources
/// namme = "IMMZCLMToPatient"

uses "http://smart.who.int/smart-immunizations-measles/StructureDefinition/IMMZCRegisterClient" alias IMMZC as source
uses "http://smart.who.int/immunizations-measles/StructureDefinition/IMMZCRegisterClient" alias IMMZC as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target
uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target

Expand All @@ -17,7 +17,7 @@ group IMMZCToPatient (

immzc -> patient.name as pname then NameToHumanName( immzc, pname ) "SetName";

immzc.sex as sex -> patient.gender = translate(sex, 'http://smart.who.int/smart-immunizations-measles/ConceptMap/IMMZCSexToAdministrativeGender', 'code') "SetGender";
immzc.sex as sex -> patient.gender = translate(sex, 'http://smart.who.int/immunizations-measles/ConceptMap/IMMZCSexToAdministrativeGender', 'code') "SetGender";

immzc.birthDate as birthDate -> patient.birthDate = birthDate "SetBirthDate";

Expand Down
4 changes: 2 additions & 2 deletions input/maps/IMMZCQRToLM.fml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
map "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZCQRToLM" = "IMMZCQRToLM"
map "http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToLM" = "IMMZCQRToLM"
// Immunization Client Registry - Extract QuestionnaireResponse to Logical Model
/// namme = "IMMZCQRToLM"

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source
uses "http://smart.who.int/smart-immunizations-measles/StructureDefinition/IMMZCRegisterClient" alias IMMZC as target
uses "http://smart.who.int/immunizations-measles/StructureDefinition/IMMZCRegisterClient" alias IMMZC as target

group QRespToIMMZC ( source qr : QResp, target immzc : IMMZC) {
qr.item as item then {
Expand Down
10 changes: 5 additions & 5 deletions input/maps/IMMZCQRToPatient.fml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
map "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZCQRToPatient" = "IMMZCQRToPatient"
map "http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToPatient" = "IMMZCQRToPatient"
// Immunization Client Registry - Extract QuestionnaireResponse to Patient resources
/// namme = "IMMZCQRToPatient"

uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source
uses "http://smart.who.int/smart-immunizations-measles/StructureDefinition/IMMZCRegisterClient" alias IMMZC as source
uses "http://smart.who.int/immunizations-measles/StructureDefinition/IMMZCRegisterClient" alias IMMZC as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" as target
uses "http://hl7.org/fhir/StructureDefinition/Patient" as target

imports "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZCQRToLM"
imports "http://smart.who.int/smart-immunizations-measles/StructureMap/IMMZCLMToPatient"
imports "http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToLM"
imports "http://smart.who.int/immunizations-measles/StructureMap/IMMZCLMToPatient"

group QRestToIMMZC (
source qr : QResp,
Expand All @@ -17,7 +17,7 @@ group QRestToIMMZC (
qr -> bundle.id = uuid() "ruleBundleId";
qr -> bundle.type = 'collection' "ruleBundleType";
qr -> bundle.entry as entry, entry.resource = create('Patient') as patient,
create("http://smart.who.int/smart-immunizations-measles/StructureDefinition/IMMZCRegisterClient") as model
create("http://smart.who.int/immunizations-measles/StructureDefinition/IMMZCRegisterClient") as model
then{
qr -> model then QRespToIMMZC( qr, model) "QRtoLM";
qr -> patient then IMMZCToPatient( model, patient ) "LMtoPatient";
Expand Down
Loading

0 comments on commit 83b44b2

Please sign in to comment.