-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpis and fgm examples, all validating
- Loading branch information
1 parent
f3cf341
commit 4049562
Showing
22 changed files
with
271 additions
and
20 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
input/fsh/examples/0003-AddRARecordTransactionExample1-bundle.fsh
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
2 changes: 1 addition & 1 deletion
2
input/fsh/examples/0004-AddRARecordTransactionExample2-bundle.fsh
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
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
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
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
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
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
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
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,28 @@ | ||
Instance: CPISConsentExample1 | ||
InstanceOf: Consent | ||
Title: "CPIS example of Consent resource" | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagConsent" | ||
|
||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-ConsentCreateSummary" | ||
* extension[=].valueAnnotation.text = "Example of consent create summary extension text" | ||
* extension[+].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-ConsentRemoveSummary" | ||
* extension[=].valueAnnotation.text = "Example of consent remove summary extension text" | ||
|
||
* status = #active | ||
* scope = $consentscope#patient-privacy | ||
* category = PatientFlagCategory#NRAF "National Reasonable Adjustments Flag" | ||
* provision.purpose = CPIS-ConsentPurpose#CPISCONSENT "CPIS - Consent to record CPIS flags" | ||
* patient = Reference(Patient/PatientExample1) | ||
* policy.authority = "https://www.gov.uk/" | ||
* policy.uri = "https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/535024/data-security-review.pdf" | ||
* policyRule = FlagProxyRole#001 | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "51a731b3-1c46-47ba-abad-04209bd264e6" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
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,21 @@ | ||
Instance: CPISPatientFlagExample1 | ||
InstanceOf: Flag | ||
Title: "CPIS example of a patient Flag resource" | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/PatientFlag" | ||
|
||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-FlagNotes" | ||
* extension[=].valueAnnotation.text = "Example of flag notes extension text in patient flag" | ||
|
||
* status = #active | ||
* code = PatientFlagCategory#CP-IS "Child Protection - Information Sharing Flag" | ||
* subject = Reference(Patient/PatientExample1) | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "42b9f285-0f1b-435a-ba6e-c72762d6502e" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
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,23 @@ | ||
Instance: CPISFlagExample1 | ||
InstanceOf: Flag | ||
Title: "CPIS example of a Flag resource" | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/ProgrammeFlag" | ||
|
||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-FlagNotes" | ||
* extension[=].valueAnnotation.text = "Example of flag notes extension text in adjustment flag" | ||
|
||
* status = #active | ||
* category[0] = PatientFlagCategory#CP-IS "Child Protection - Information Sharing Flag" | ||
* category[+] = CPIS-FlagCategory#001 "Example CPIS category" | ||
* code = $sct#1082681000000103 "Requires support for receptive communication needs" | ||
* subject = Reference(Patient/PatientExample1) | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "ea77b434-585a-48b9-a789-eac610f0363e" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
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,20 @@ | ||
Instance: CPISConditionExample1 | ||
InstanceOf: Condition | ||
Title: "CPIS example of a Condition resource." | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagCondition" | ||
|
||
* clinicalStatus = $condition-clinical#active | ||
* category[0] = PatientFlagCategory#CP-IS "Child Protection - Information Sharing Flag" | ||
* category[+] = CPIS-ConditionCategory#cpis-example-condition-category "CPIS example condition category" | ||
* code = CPIS-ConditionCode#1 "CPIS example condition code" | ||
* subject = Reference(Patient/PatientExample1) | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "482155c0-9ed3-4b22-b7b8-009f265606cc" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
25 changes: 25 additions & 0 deletions
25
input/fsh/examples/0024-AddCPISRecordTransactionExample1-bundle.fsh
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,25 @@ | ||
Instance: AddCPISRecordTransactionExample1 | ||
InstanceOf: Bundle | ||
Title: "CPIS Example of adding a record with a Transaction" | ||
Usage: #example | ||
* type = #transaction | ||
* entry[0].fullUrl = "urn:uuid:f7898b1c-4314-4331-9477-cca32861e858" | ||
* entry[=].resource = PatientExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Patient?identifier=9912003888" | ||
* entry[+].fullUrl = "urn:uuid:921cd5d5-e1e9-4986-bf8e-5826832db2ff" | ||
* entry[=].resource = CPISConsentExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Consent?patient=urn:uuid:f7898b1c-4314-4331-9477-cca32861e858" | ||
* entry[+].fullUrl = "urn:uuid:7dd8fe1e-e782-42c6-9ef4-1bebce3a43cc" | ||
* entry[=].resource = CPISConditionExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Condition?patient=urn:uuid:f7898b1c-4314-4331-9477-cca32861e858" | ||
* entry[+].fullUrl = "urn:uuid:066fbb4b-2a8d-471e-8732-42e85ab1de1a" | ||
* entry[=].resource = CPISPatientFlagExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Flag/066fbb4b-2a8d-471e-8732-42e85ab1de1a" | ||
* entry[+].fullUrl = "urn:uuid:621c9e76-19e1-4aa0-adb0-8d79979ea27c" | ||
* entry[=].resource = CPISFlagExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Flag/066fbb4b-2a8d-471e-8732-42e85ab1de1a" |
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,28 @@ | ||
Instance: FGMConsentExample1 | ||
InstanceOf: Consent | ||
Title: "FGM example of Consent resource" | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagConsent" | ||
|
||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-ConsentCreateSummary" | ||
* extension[=].valueAnnotation.text = "Example of consent create summary extension text" | ||
* extension[+].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-ConsentRemoveSummary" | ||
* extension[=].valueAnnotation.text = "Example of consent remove summary extension text" | ||
|
||
* status = #active | ||
* scope = $consentscope#patient-privacy | ||
* category = PatientFlagCategory#FGM "Female Genital Mutilation Flag" | ||
* provision.purpose = FGM-ConsentPurpose#FGMCONSENT "FGM - Consent to record FGM flags" | ||
* patient = Reference(Patient/PatientExample1) | ||
* policy.authority = "https://www.gov.uk/" | ||
* policy.uri = "https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/535024/data-security-review.pdf" | ||
* policyRule = FlagProxyRole#001 | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "bc0dbfb1-7432-46fa-b1b8-0e3648827754" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
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,21 @@ | ||
Instance: FGMPatientFlagExample1 | ||
InstanceOf: Flag | ||
Title: "FGM example of a patient Flag resource" | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/PatientFlag" | ||
|
||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-FlagNotes" | ||
* extension[=].valueAnnotation.text = "Example of flag notes extension text in patient flag" | ||
|
||
* status = #active | ||
* code = PatientFlagCategory#FGM "Female Genital Mutilation Flag" | ||
* subject = Reference(Patient/PatientExample1) | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "3fc83fd8-4a6d-48e4-91ab-12bb10a4a834" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
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,23 @@ | ||
Instance: FGMFlagExample1 | ||
InstanceOf: Flag | ||
Title: "FGM example of a Flag resource" | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/ProgrammeFlag" | ||
|
||
* extension[0].url = "https://fhir.nhs.uk/England/StructureDefinition/Extension-FlagNotes" | ||
* extension[=].valueAnnotation.text = "Example of flag notes extension text in adjustment flag" | ||
|
||
* status = #active | ||
* category[0] = PatientFlagCategory#FGM "Female Genital Mutilation Flag" | ||
* category[+] = FGM-FlagCategory#001 "Example FGM category" | ||
* code = $sct#1082681000000103 "Requires support for receptive communication needs" | ||
* subject = Reference(Patient/PatientExample1) | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "9b5f2d1b-8175-407f-a49d-b4f04c9d4300" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
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,20 @@ | ||
Instance: FGMConditionExample1 | ||
InstanceOf: Condition | ||
Title: "FGM example of a Condition resource." | ||
Usage: #example | ||
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagCondition" | ||
|
||
* clinicalStatus = $condition-clinical#active | ||
* category[0] = PatientFlagCategory#FGM "Female Genital Mutilation Flag" | ||
* category[+] = FGM-ConditionCategory#fgm-example-condition-category "FGM example condition category" | ||
* code = FGM-ConditionCode#1 "FGM example condition code" | ||
* subject = Reference(Patient/PatientExample1) | ||
|
||
* contained.resourceType = "Provenance" | ||
* contained.id = "e78b78b2-31f9-453d-b278-6d5720001073" | ||
* contained.target.reference = "#" | ||
* contained.recorded = "2024-01-01T11:00:00+00:00" | ||
* contained.activity = $v3-DataOperation#CREATE "create" | ||
* contained.agent.role = $CareConnect-SDSJobRoleName-1#R0260 "General Medical Practitioner" | ||
* contained.agent.who.reference = "https://sds.spineservices.nhs.uk/STU3/Practitioner/2ee4tr6a9" | ||
* contained.agent.onBehalfOf.reference = "https://directory.spineservices.nhs.uk/STU3/Organization/a3e5i7" |
25 changes: 25 additions & 0 deletions
25
input/fsh/examples/0029-AddFGMRecordTransactionExample1-bundle.fsh
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,25 @@ | ||
Instance: AddFGMRecordTransactionExample1 | ||
InstanceOf: Bundle | ||
Title: "FGM Example of adding a record with a Transaction" | ||
Usage: #example | ||
* type = #transaction | ||
* entry[0].fullUrl = "urn:uuid:9580a1de-f418-432b-85da-eba186b7cfa5" | ||
* entry[=].resource = PatientExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Patient?identifier=9912003888" | ||
* entry[+].fullUrl = "urn:uuid:cd1de51b-2007-4409-8a96-cfcc1e0a0b6b" | ||
* entry[=].resource = FGMConsentExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Consent?patient=urn:uuid:9580a1de-f418-432b-85da-eba186b7cfa5" | ||
* entry[+].fullUrl = "urn:uuid:7dd8fe1e-e782-42c6-9ef4-1bebce3a43cc" | ||
* entry[=].resource = FGMConditionExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Condition?patient=urn:uuid:9580a1de-f418-432b-85da-eba186b7cfa5" | ||
* entry[+].fullUrl = "urn:uuid:97c6d9be-1431-4112-b99c-5cecd318ede0" | ||
* entry[=].resource = FGMPatientFlagExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Flag/97c6d9be-1431-4112-b99c-5cecd318ede0" | ||
* entry[+].fullUrl = "urn:uuid:38f67aa3-5ea8-4a29-9cd5-54ba7acf79a8" | ||
* entry[=].resource = FGMFlagExample1 | ||
* entry[=].request.method = #PUT | ||
* entry[=].request.url = "Flag/38f67aa3-5ea8-4a29-9cd5-54ba7acf79a8" |
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
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
Oops, something went wrong.