diff --git a/fsh-generated/resources/ImplementationGuide-healthedata1-sandbox.json b/fsh-generated/resources/ImplementationGuide-healthedata1-sandbox.json index 370037e..1deb6b0 100644 --- a/fsh-generated/resources/ImplementationGuide-healthedata1-sandbox.json +++ b/fsh-generated/resources/ImplementationGuide-healthedata1-sandbox.json @@ -62,7 +62,7 @@ "id": "vsac", "packageId": "us.nlm.vsac", "uri": "http://fhir.org/packages/us.nlm.vsac/ImplementationGuide/us.nlm.vsac", - "version": "0.9.0" + "version": "0.17.0" }, { "id": "uscdcphinvads", @@ -152,14 +152,6 @@ "exampleBoolean": false, "name": "US Core Pediatric Weight for Height Observation Profile" }, - { - "reference": { - "reference": "StructureDefinition/us-core-simple-observation" - }, - "description": "This US Core FHIR Profile is meant to capture any “simple” observations that are not otherwise covered by other US Core Observation profiles. It represents any type of observation that is not classified as vital signs, laboratory, imaging, or other more specific observation types. This profile promotes interoperability and adoption through common implementation by setting minimum expectations for the Observation resource to record, search, and retrieve observations such as a clinical observation or assertion about a patient's health status or other general observations. This profile identifies which core elements, extensions, vocabularies, and value sets **SHALL** be present in the resource and constrains the way the elements are used when using this profile. It provides the floor for standards development for specific use cases.", - "exampleBoolean": false, - "name": "US Core Simple Observation Profile" - }, { "reference": { "reference": "ValueSet/us-core-source-of-payment" diff --git a/input/data/ig.yml b/input/data/ig.yml index 616471b..078a58c 100644 --- a/input/data/ig.yml +++ b/input/data/ig.yml @@ -40,7 +40,7 @@ dependsOn: - id: vsac packageId: us.nlm.vsac uri: http://fhir.org/packages/us.nlm.vsac/ImplementationGuide/us.nlm.vsac - version: 0.9.0 + version: 0.17.0 - id: uscdcphinvads packageId: us.cdc.phinvads uri: http://fhir.org/packages/us.cdc.phinvads/ImplementationGuide/us.cdc.phinvads @@ -130,22 +130,6 @@ definition: for standards development for specific use cases. exampleBoolean: false name: US Core Pediatric Weight for Height Observation Profile - - reference: - reference: StructureDefinition/us-core-simple-observation - description: "This US Core FHIR Profile is meant to capture any \u201Csimple\u201D\ - \ observations that are not otherwise covered by other US Core Observation profiles.\ - \ It represents any type of observation that is not classified as vital signs,\ - \ laboratory, imaging, or other more specific observation types. This profile\ - \ promotes interoperability and adoption through common implementation by setting\ - \ minimum expectations for the Observation resource to record, search, and retrieve\ - \ observations such as a clinical observation or assertion about a patient's\ - \ health status or other general observations. This profile identifies which\ - \ core elements, extensions, vocabularies, and value sets **SHALL** be present\ - \ in the resource and constrains the way the elements are used when using this\ - \ profile. It provides the floor for standards development for specific use\ - \ cases." - exampleBoolean: false - name: US Core Simple Observation Profile - reference: reference: ValueSet/us-core-source-of-payment description: '[US Public Health Data Consortium Source of Payment Codes](https://www.nahdo.org/sites/default/files/2020-12/SourceofPaymentTypologyUsersGuideVersion9.2December2020.pdf) diff --git a/input/examples/example-targeted-provenance.json b/input/examples/example-targeted-provenance.json index 1a420cc..5d8722f 100644 --- a/input/examples/example-targeted-provenance.json +++ b/input/examples/example-targeted-provenance.json @@ -1,63 +1,63 @@ { - "resourceType": "Provenance", - "id": "example-targeted-provenance", - "meta": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-name", - "valueString": "Targeted Provenance Example" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-description", - "valueMarkdown": "This is a provenance example for the *US Core Provenance Profile* to demonstrate how Provenance can be used to document the source of individual elements such as Race and Ethnicity (R/E), gender identity." - } - ], - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance|0.1.0" - ] - }, - "target": [ - { - "reference": "Patient/example-targeted-provenance", - "extension": [ + "resourceType": "Provenance", + "id": "example-targeted-provenance", + "meta": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-name", + "valueString": "Targeted Provenance Example" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-description", + "valueMarkdown": "This is a provenance example for the *US Core Provenance Profile* to demonstrate how Provenance can be used to document the source of individual elements such as Race and Ethnicity (R/E), gender identity." + } + ], + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance" + ] + }, + "target": [ { - "url": "http://hl7.org/fhir/StructureDefinition/targetElement", - "valueUri": "race" + "reference": "Patient/example-targeted-provenance", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/targetElement", + "valueUri": "race" + } + ] } - ] - } - ], - "recorded": "2023-02-28T15:26:23.217+00:00", - "agent": [ - { - "role": [ + ], + "recorded": "2023-02-28T15:26:23.217+00:00", + "agent": [ { - "coding": [ - { - "system": "http://dicom.nema.org/resources/ontology/DCM", - "code": "110150", - "display": "Application" + "role": [ + { + "coding": [ + { + "system": "http://dicom.nema.org/resources/ontology/DCM", + "code": "110150", + "display": "Application" + } + ] + } + ], + "who": { + "display": "My_Form" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type", + "code": "informant", + "display": "Informant" + } + ] + }, + "who": { + "reference": "Patient/example-targeted-provenance" } - ] } - ], - "who": { - "display": "My_Form" - } - }, - { - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type", - "code": "informant", - "display": "Informant" - } - ] - }, - "who": { - "reference": "Patient/example-targeted-provenance" - } - } - ] -} + ] +} \ No newline at end of file diff --git a/input/examples/hl7east.json b/input/examples/hl7east.json index a7b9fa9..1934c83 100644 --- a/input/examples/hl7east.json +++ b/input/examples/hl7east.json @@ -1,62 +1,62 @@ { - "resourceType": "Location", - "id": "hl7east", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-location|0.1.0" + "resourceType": "Location", + "id": "hl7east", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-location" + ], + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-name", + "valueString": "HL7East Example" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-description", + "valueMarkdown": "This is a HL7East example for the *US Core Location Profile*." + } + ] + }, + "identifier": [ + { + "system": "http://www.acme.org/location", + "value": "29" + } ], - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-name", - "valueString": "HL7East Example" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-description", - "valueMarkdown": "This is a HL7East example for the *US Core Location Profile*." - } - ] - }, - "identifier": [ - { - "system": "http://www.acme.org/location", - "value": "29" - } - ], - "status": "active", - "name": "Health Level Seven International - Amherst", - "type": [ - { - "coding": [ + "status": "active", + "name": "Health Level Seven International - Amherst", + "type": [ { - "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", - "code": "_DedicatedNonClinicalLocationRoleType", - "display": "DedicatedNonClinicalLocationRoleType" + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode", + "code": "_DedicatedNonClinicalLocationRoleType", + "display": "DedicatedNonClinicalLocationRoleType" + } + ], + "text": "Administrative Office" } - ], - "text": "Administrative Office" - } - ], - "description": "HL7 Headquarters - East", - "telecom": [ - { - "system": "phone", - "value": "(+1) 734-677-7777" - } - ], - "address": { - "line": [ - "3300 Washtenaw Avenue, Suite 227" ], - "city": "Amherst", - "state": "MA", - "postalCode": "01002", - "country": "USA" - }, - "position": { - "longitude": -72.519854, - "latitude": 42.373222 - }, - "managingOrganization": { - "display": "Health Level Seven International" - } -} + "description": "HL7 Headquarters - East", + "telecom": [ + { + "system": "phone", + "value": "(+1) 734-677-7777" + } + ], + "address": { + "line": [ + "3300 Washtenaw Avenue, Suite 227" + ], + "city": "Amherst", + "state": "MA", + "postalCode": "01002", + "country": "USA" + }, + "position": { + "longitude": -72.519854, + "latitude": 42.373222 + }, + "managingOrganization": { + "display": "Health Level Seven International" + } +} \ No newline at end of file diff --git a/input/examples/patient-deceased-example.json b/input/examples/patient-deceased-example.json index 73c02e8..0780604 100644 --- a/input/examples/patient-deceased-example.json +++ b/input/examples/patient-deceased-example.json @@ -1,118 +1,118 @@ { - "resourceType": "Patient", - "id": "deceased-example", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|0.1.0" - ], + "resourceType": "Patient", + "id": "deceased-example", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ], + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-name", + "valueString": "Deceased Patient Example" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-description", + "valueMarkdown": "This is a deceased patient example for the *US Core Patient Profile*." + } + ] + }, "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-name", - "valueString": "Deceased Patient Example" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-description", - "valueMarkdown": "This is a deceased patient example for the *US Core Patient Profile*." - } - ] - }, - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", - "extension": [ { - "url": "ombCategory", - "valueCoding": { - "system": "urn:oid:2.16.840.1.113883.6.238", - "code": "2106-3", - "display": "White" - } + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2106-3", + "display": "White" + } + }, + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + }, + { + "url": "text", + "valueString": "Mixed" + } + ] }, { - "url": "ombCategory", - "valueCoding": { - "system": "urn:oid:2.16.840.1.113883.6.238", - "code": "2028-9", - "display": "Asian" - } - }, + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2186-5", + "display": "Not Hispanic or Latino" + } + }, + { + "url": "text", + "valueString": "Not Hispanic or Latino" + } + ] + } + ], + "identifier": [ { - "url": "text", - "valueString": "Mixed" + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ], + "text": "Medical Record Number" + }, + "system": "http://hospital.smarthealthit.org", + "value": "55555555" } - ] - }, - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", - "extension": [ + ], + "active": true, + "name": [ { - "url": "ombCategory", - "valueCoding": { - "system": "urn:oid:2.16.840.1.113883.6.238", - "code": "2186-5", - "display": "Not Hispanic or Latino" - } + "family": "Shaw", + "given": [ + "Mary", + "A." + ] + } + ], + "telecom": [ + { + "system": "phone", + "value": "555-555-5555", + "use": "home" }, { - "url": "text", - "valueString": "Not Hispanic or Latino" + "system": "email", + "value": "mary.shaw@example.com" } - ] - } - ], - "identifier": [ - { - "use": "usual", - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0203", - "code": "MR", - "display": "Medical Record Number" - } - ], - "text": "Medical Record Number" - }, - "system": "http://hospital.smarthealthit.org", - "value": "55555555" - } - ], - "active": true, - "name": [ - { - "family": "Shaw", - "given": [ - "Mary", - "A." - ] - } - ], - "telecom": [ - { - "system": "phone", - "value": "555-555-5555", - "use": "home" - }, - { - "system": "email", - "value": "mary.shaw@example.com" - } - ], - "gender": "female", - "birthDate": "1937-10-21", - "deceasedDateTime": "2022-07-22", - "address": [ - { - "line": [ - "49 Meadow St" - ], - "city": "Mounds", - "state": "OK", - "postalCode": "74047", - "country": "US", - "period": { - "start": "2016-12-06" - } - } - ] -} + ], + "gender": "female", + "birthDate": "1937-10-21", + "deceasedDateTime": "2022-07-22", + "address": [ + { + "line": [ + "49 Meadow St" + ], + "city": "Mounds", + "state": "OK", + "postalCode": "74047", + "country": "US", + "period": { + "start": "2016-12-06" + } + } + ] +} \ No newline at end of file diff --git a/input/examples/patient-example-targeted-provenance.json b/input/examples/patient-example-targeted-provenance.json index 5b4337b..704cffb 100644 --- a/input/examples/patient-example-targeted-provenance.json +++ b/input/examples/patient-example-targeted-provenance.json @@ -1,115 +1,115 @@ { - "resourceType": "Patient", - "id": "example-targeted-provenance", - "meta": { + "resourceType": "Patient", + "id": "example-targeted-provenance", + "meta": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-name", + "valueString": "Targeted Provenance Patient Example" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/instance-description", + "valueMarkdown": "This is a patient example for the *US Core Patient Profile* to demonstrate how Provenance can be used to document the source of individual elements such as Race and Ethnicity (R/E), gender identity." + } + ], + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-name", - "valueString": "Targeted Provenance Patient Example" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/instance-description", - "valueMarkdown": "This is a patient example for the *US Core Patient Profile* to demonstrate how Provenance can be used to document the source of individual elements such as Race and Ethnicity (R/E), gender identity." - } - ], - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|0.1.0" - ] - }, - "extension": [ - { - "id": "race", - "extension": [ { - "url": "ombCategory", - "valueCoding": { - "system": "urn:oid:2.16.840.1.113883.6.238", - "code": "2106-3", - "display": "White" - } + "id": "race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2106-3", + "display": "White" + } + }, + { + "url": "text", + "valueString": "Mixed" + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" }, { - "url": "text", - "valueString": "Mixed" - } - ], - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" - }, - { - "id": "ethnicity", - "extension": [ + "id": "ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + }, + { + "url": "text", + "valueString": "Hispanic or Latino" + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, { - "url": "ombCategory", - "valueCoding": { - "system": "urn:oid:2.16.840.1.113883.6.238", - "code": "2135-2", - "display": "Hispanic or Latino" - } + "id": "birthsex", + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode": "F" }, { - "url": "text", - "valueString": "Hispanic or Latino" + "id": "genderIdentity", + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-genderIdentity", + "extension": [ + { + "url": "value", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "code": "UNK" + } + ] + } + } + ] } - ], - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" - }, - { - "id": "birthsex", - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", - "valueCode": "F" - }, - { - "id": "genderIdentity", - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-genderIdentity", - "extension": [ + ], + "identifier": [ { - "url": "value", - "valueCodeableConcept": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", - "code": "UNK" - } + "system": "http://hospital.smarthealthit.org", + "value": "1032702" + } + ], + "active": true, + "name": [ + { + "family": "Shaw", + "given": [ + "Amy", + "V." ] - } } - ] - } - ], - "identifier": [ - { - "system": "http://hospital.smarthealthit.org", - "value": "1032702" - } - ], - "active": true, - "name": [ - { - "family": "Shaw", - "given": [ - "Amy", - "V." - ] - } - ], - "telecom": [ - { - "system": "phone", - "value": "555-555-5555" - } - ], - "gender": "female", - "_gender": { - "id": "gender" - }, - "birthDate": "1987-02-20", - "address": [ - { - "line": [ - "183 Mountain View St" - ], - "city": "Mounds", - "state": "OK" - } - ] -} + ], + "telecom": [ + { + "system": "phone", + "value": "555-555-5555" + } + ], + "gender": "female", + "_gender": { + "id": "gender" + }, + "birthDate": "1987-02-20", + "address": [ + { + "line": [ + "183 Mountain View St" + ], + "city": "Mounds", + "state": "OK" + } + ] +} \ No newline at end of file diff --git a/input/resources/StructureDefinition-test-obs.json b/input/resources/StructureDefinition-test-obs.json deleted file mode 100644 index 4c17c4f..0000000 --- a/input/resources/StructureDefinition-test-obs.json +++ /dev/null @@ -1,378 +0,0 @@ -{ - "resourceType": "StructureDefinition", - "id": "us-core-simple-observation", - "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation", - "name": "USCoreSimpleObservationProfile", - "title": "US Core Simple Observation Profile", - "status": "active", - "date": "2022-04-20", - "description": "This US Core FHIR Profile is meant to capture any \u201csimple\u201d observations that are not otherwise covered by other US Core Observation profiles. It represents any type of observation that is not classified as vital signs, laboratory, imaging, or other more specific observation types. This profile promotes interoperability and adoption through common implementation by setting minimum expectations for the Observation resource to record, search, and retrieve observations such as a clinical observation or assertion about a patient's health status or other general observations. This profile identifies which core elements, extensions, vocabularies, and value sets **SHALL** be present in the resource and constrains the way the elements are used when using this profile. It provides the floor for standards development for specific use cases.", - "fhirVersion": "4.0.1", - "kind": "resource", - "abstract": false, - "type": "Observation", - "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", - "derivation": "constraint", - "differential": { - "element": [ - { - "id": "Observation", - "path": "Observation", - "short": "assessment observation", - "definition": "\\-", - "comment": "\\-" - }, - { - "id": "Observation.status", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.status", - "short": "(USCDI) registered | preliminary | final | amended +", - "mustSupport": true - }, - { - "id": "Observation.category", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.category", - "slicing": { - "discriminator": [ - { - "type": "pattern", - "path": "$this" - } - ], - "rules": "open" - }, - "short": "(USCDI) Classification of type of observation", - "min": 1, - "mustSupport": true - }, - { - "id": "Observation.category", - "path": "Observation.category", - "short": "default slice", - "min": 0 - }, - { - "id": "Observation.category:us-core", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.category", - "sliceName": "us-core", - "short": "(USCDI) Classification of type of observation", - "min": 0, - "mustSupport": true, - "binding": { - "strength": "required", - "description": "Note that other codes are permitted, see [Required Bindings When Slicing by Value Sets](http://hl7.org/fhir/us/core/general-requirements.html#required-bindings-when-slicing-by-valuesets)", - "valueSet": "http://hl7.org/fhir/us/core/ValueSet/us-core-simple-observation-category" - } - }, - { - "id": "Observation.code", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.code", - "short": "(USCDI) Type of observation (code / type)", - "mustSupport": true, - "binding": { - "strength": "preferred" - } - }, - { - "id": "Observation.subject", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.subject", - "short": "(USCDI) Who and/or what the observation is about", - "min": 1, - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" - ] - } - ], - "mustSupport": true - }, - { - "id": "Observation.effective[x]", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.effective[x]", - "short": "(USCDI) Clinically relevant time/time-period for observation", - "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\".", - "comment": "At least a date should be present unless this observation is a historical report.", - "type": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": true - } - ], - "code": "dateTime" - }, - { - "code": "Period" - }, - { - "code": "Timing" - }, - { - "code": "instant" - } - ], - "mustSupport": true - }, - { - "id": "Observation.performer", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.performer", - "short": "(USCDI) Who is responsible for the observation", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner", - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization", - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient", - "http://hl7.org/fhir/StructureDefinition/PractitionerRole", - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam", - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-relatedperson" - ], - "_targetProfile": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - } - ] - } - ], - "mustSupport": true - }, - { - "id": "Observation.value[x]", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.value[x]", - "short": "(USCDI) Actual result", - "type": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": true - } - ], - "code": "Quantity" - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": true - } - ], - "code": "CodeableConcept" - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": true - } - ], - "code": "string" - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": true - } - ], - "code": "boolean" - }, - { - "code": "integer" - }, - { - "code": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "SampledData" - }, - { - "code": "time" - }, - { - "code": "dateTime" - }, - { - "code": "Period" - } - ], - "mustSupport": true - }, - { - "id": "Observation.derivedFrom", - "extension": [ - { - "url": "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement", - "valueBoolean": true - } - ], - "path": "Observation.derivedFrom", - "short": "(USCDI) US Core Profiles or other resource the observation is made from", - "definition": "US Core Observations, DocumentReference, QuestionnaireResponse or other resource from which this observation value is derived.", - "type": [ - { - "code": "Reference", - "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Observation", - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference", - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-questionnaireresponse", - "http://hl7.org/fhir/StructureDefinition/ImagingStudy", - "http://hl7.org/fhir/StructureDefinition/Media", - "http://hl7.org/fhir/StructureDefinition/MolecularSequence" - ], - "_targetProfile": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support", - "valueBoolean": false - } - ] - } - ] - } - ], - "mustSupport": false - } - ] - } -} \ No newline at end of file diff --git a/publish.sh b/publish.sh index 2d7d4ba..ee27e5e 100644 --- a/publish.sh +++ b/publish.sh @@ -8,7 +8,7 @@ trap "echo '================================================================='; NA='http://tx.fhir.org' GEN_OFF='' VAL_OFF='' -while getopts abcdefghiknopqrstuvy option; +while getopts abcdefghiknopqrstvy option; do case "${option}" in @@ -31,7 +31,7 @@ do r) CLEAR_JSON=1;; s) SUSHI=1;; t) NA='N/A';; - u) UPDATE_IGJSON=1;; +# u) UPDATE_IGJSON=1;; v) VIEW_OUTPUT=1;; # w) WATCH=1;; # x) RECENT_YAML=1;; @@ -80,7 +80,7 @@ echo "-g flag to turn off narrative generation to speed up build times = $GEN_OF echo "-h flag to turn off validation to speed up build times = $VAL_OFF" echo "-i parameter for running only ig-publisher = $IG_PUBLISH" echo "-k remove the meta.profile elements from all the examples = $NO_PROFILE" -# echo "-m merge all StructureDefinition csv files with single header = $MERGE_CSV" # no longer this needed? +# echo "-m merge all StructureDefinition csv files with single header = $MERGE_CSV" # no longer needed echo "-n remove the meta.extension elements from all the examples = $NO_META" echo "-o parameter for running previous version of the igpublisher= $PUB" echo "-p parameter for downloading latest version of the igpublisher from source = $UPDATE" @@ -88,11 +88,11 @@ echo "-q view qa output in current browser = ./$outpath/qa.html = $VIEW_QA" echo "-r remove all generated json files = $CLEAR_JSON" echo "-s parameter for running only sushi = $SUSHI" echo "-t parameter for no terminology server (run faster and offline)= $NA" -echo "-u parameter for updating ig.json file (until SUSHI catches up)= $UPDATE_IGJSON" +# echo "-u parameter for updating ig.json file (until SUSHI catches up)= $UPDATE_IGJSON" # no longer needed echo "-v view ig home page in current browser = ./$outpath/index.html = $VIEW_OUTPUT" # echo "-x tranform all yaml that changed in the last day to json files = $RECENT_YAML" echo "-y delete all json files and tranform all yaml files to json files = $All_YAML" -# echo "-z zip up all schematrons = $ZIP_SCH" # no longer needed? +# echo "-z zip up all schematrons = $ZIP_SCH" # no longer needed #echo "-w parameter for using watch on igpublisher from source default is off = $WATCH" #echo '-l parameter for downloading HL7 ig template from source = ' $LOAD_TEMPLATE #echo '-u parameter for downloading test ig template from source or file= ' $TEST_TEMPLATE @@ -351,18 +351,18 @@ if [[ $APP_VERSION ]]; then rm -rf $tmp fi -if [[ $UPDATE_IGJSON ]]; then - echo "===============================================================================" - echo "================ move the ig-link-dependency extensions from ==================" - echo "============ImplementationGuide to ImplementationGuide.definition =============" - echo "===============================================================================" - IGJSON=$(echo fsh-generated/resources/ImplementationGuide*.json) - echo "========= IGJSON is $IGJSON ===========" - tmp=$(mktemp -d -d $inpath/_examples) - jq --arg url "http://hl7.org/fhir/tools/StructureDefinition/ig-link-dependency" '.definition += { "extension": [.extension[] | select(.url == $url)] } | del(.extension[] | select(.url == $url))' $IGJSON > $tmp/ig.json - mv $tmp/ig.json $IGJSON - rm -rf $tmp -fi +# if [[ $UPDATE_IGJSON ]]; then +# echo "===============================================================================" +# echo "================ move the ig-link-dependency extensions from ==================" +# echo "============ImplementationGuide to ImplementationGuide.definition =============" +# echo "===============================================================================" +# IGJSON=$(echo fsh-generated/resources/ImplementationGuide*.json) +# echo "========= IGJSON is $IGJSON ===========" +# tmp=$(mktemp -d -d $inpath/_examples) +# jq --arg url "http://hl7.org/fhir/tools/StructureDefinition/ig-link-dependency" '.definition += { "extension": [.extension[] | select(.url == $url)] } | del(.extension[] | select(.url == $url))' $IGJSON > $tmp/ig.json +# mv $tmp/ig.json $IGJSON +# rm -rf $tmp +# fi if [[ $IG_PUBLISH ]]; then