Skip to content

Commit

Permalink
cpis and fgm examples, all validating
Browse files Browse the repository at this point in the history
  • Loading branch information
declankieran committed Mar 8, 2024
1 parent f3cf341 commit 4049562
Show file tree
Hide file tree
Showing 22 changed files with 271 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: AddRARecordTransactionExample1
InstanceOf: Bundle
Title: "RA Example of adding an RA record with a Transaction"
Title: "RA Example of adding a record with a Transaction"
Usage: #example
* type = #transaction
* entry[0].fullUrl = "urn:uuid:6253c43b-5cc8-4645-93b1-38e41be82a77"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: AddRARecordTransactionExample2
InstanceOf: Bundle
Title: "RA Example of idempotent update of an RA record with a Transaction"
Title: "RA Example of idempotent update of a record with a Transaction"
Usage: #example
* type = #transaction
* entry[0].fullUrl = "urn:uuid:6253c43b-5cc8-4645-93b1-38e41be82a77"
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/examples/0013-RAConsentExample1.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: RAConsentExample1
InstanceOf: Consent
Title: "RA Example of Consent resource for Reasonable Adjustments"
Title: "RA example of Consent resource."
Usage: #example
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagConsent"

Expand All @@ -12,7 +12,7 @@ Usage: #example
* status = #active
* scope = $consentscope#patient-privacy
* category = PatientFlagCategory#NRAF "National Reasonable Adjustments Flag"
* provision.purpose = $sct#370856009 "Limiting access to confidential patient information"
* provision.purpose = RA-ConsentPurpose#RACONSENT "Reasonable Adjustments - Consent to record Reasonable Adjustments"
* 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"
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/examples/0015-RAPatientFlagExample1.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: RAPatientFlagExample1
InstanceOf: Flag
Title: "RA Example of a patient Flag resource for Reasonable Adjustments"
Title: "RA example of a patient Flag resource."
Usage: #example
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/PatientFlag"

Expand All @@ -12,7 +12,7 @@ Usage: #example
* subject = Reference(Patient/PatientExample1)

* contained.resourceType = "Provenance"
* contained.id = "4c75ce1f-1ad7-4391-b5f6-104754c7e904"
* contained.id = "c4e2e862-3bf4-4176-a186-9f1732938260"
* contained.target.reference = "#"
* contained.recorded = "2024-01-01T11:00:00+00:00"
* contained.activity = $v3-DataOperation#CREATE "create"
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/examples/0016-RAFlagExample1.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: RAFlagExample1
InstanceOf: Flag
Title: "RA Example 1 of a Flag resource for Reasonable Adjustments"
Title: "RA example 1 of a Flag resource."
Usage: #example
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/ProgrammeFlag"

Expand All @@ -14,7 +14,7 @@ Usage: #example
* subject = Reference(Patient/PatientExample1)

* contained.resourceType = "Provenance"
* contained.id = "4c75ce1f-1ad7-4391-b5f6-104754c7e904"
* contained.id = "873a38eb-0f9c-4a66-a4e9-8e4be2350d6b"
* contained.target.reference = "#"
* contained.recorded = "2024-01-01T11:00:00+00:00"
* contained.activity = $v3-DataOperation#CREATE "create"
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/examples/0017-RAConditionExample1.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: RAConditionExample1
InstanceOf: Condition
Title: "RA Example 1 of a Condition resource for Reasonable Adjustments"
Title: "RA example 1 of a Condition resource."
Usage: #example
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagCondition"

Expand All @@ -11,7 +11,7 @@ Usage: #example
* subject = Reference(Patient/PatientExample1)

* contained.resourceType = "Provenance"
* contained.id = "4c75ce1f-1ad7-4391-b5f6-104754c7e904"
* contained.id = "6a6b18a7-c077-49da-929f-a8dd38468f79"
* contained.target.reference = "#"
* contained.recorded = "2024-01-01T11:00:00+00:00"
* contained.activity = $v3-DataOperation#CREATE "create"
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/examples/0018-RAFlagExample2.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: RAFlagExample2
InstanceOf: Flag
Title: "RA Example 2 of a Flag resource for Reasonable Adjustments"
Title: "RA example 2 of a Flag resource."
Usage: #example
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/ProgrammeFlag"

Expand All @@ -14,7 +14,7 @@ Usage: #example
* subject = Reference(Patient/PatientExample1)

* contained.resourceType = "Provenance"
* contained.id = "4c75ce1f-1ad7-4391-b5f6-104754c7e904"
* contained.id = "71f8bcda-242d-4401-a59c-6924a6cb1c0e"
* contained.target.reference = "#"
* contained.recorded = "2024-01-01T11:00:00+00:00"
* contained.activity = $v3-DataOperation#CREATE "create"
Expand Down
4 changes: 2 additions & 2 deletions input/fsh/examples/0019-RAConditionExample2.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instance: RAConditionExample2
InstanceOf: Condition
Title: "RA Example 2 of a Condition resource for Reasonable Adjustments"
Title: "RA example 2 of a Condition resource."
Usage: #example
* meta.profile = "https://fhir.nhs.uk/England/StructureDefinition/FlagCondition"

Expand All @@ -11,7 +11,7 @@ Usage: #example
* subject = Reference(Patient/PatientExample1)

* contained.resourceType = "Provenance"
* contained.id = "4c75ce1f-1ad7-4391-b5f6-104754c7e904"
* contained.id = "f55e1edc-8ac7-4e06-b322-25fd34e62249"
* contained.target.reference = "#"
* contained.recorded = "2024-01-01T11:00:00+00:00"
* contained.activity = $v3-DataOperation#CREATE "create"
Expand Down
28 changes: 28 additions & 0 deletions input/fsh/examples/0020-CPISConsentExample.fsh
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"
21 changes: 21 additions & 0 deletions input/fsh/examples/0021-CPISPatientFlagExample1.fsh
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"
23 changes: 23 additions & 0 deletions input/fsh/examples/0022-CPISFlagExample1.fsh
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"
20 changes: 20 additions & 0 deletions input/fsh/examples/0023-CPISConditionExample1.fsh
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"
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"
28 changes: 28 additions & 0 deletions input/fsh/examples/0025-FGMConsentExample.fsh
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"
21 changes: 21 additions & 0 deletions input/fsh/examples/0026-FGMPatientFlagExample1.fsh
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"
23 changes: 23 additions & 0 deletions input/fsh/examples/0027-FGMFlagExample1.fsh
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"
20 changes: 20 additions & 0 deletions input/fsh/examples/0028-FGMConditionExample1.fsh
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 input/fsh/examples/0029-AddFGMRecordTransactionExample1-bundle.fsh
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"
2 changes: 1 addition & 1 deletion input/fsh/profiles/FlagConsent.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Profile: FlagConsent
Parent: Consent
Id: FlagConsent
Title: "NHSE Flag Consent Profile"
Description: "To record consent to capture information for NHS England flags"
Description: "Record consent to capture information for NHS England flags"

* ^name = "FlagConsent"
* ^url = "https://fhir.nhs.uk/England/StructureDefinition/FlagConsent"
Expand Down
2 changes: 1 addition & 1 deletion input/fsh/profiles/FlagProvenance.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Profile: FlagProvenance
Parent: Provenance
Id: FlagProvenance
Title: "NHSE Flag Provenance Profile"
Description: "To record details of the practitioner recording or removing an individual Flag."
Description: "Record details of the practitioner recording or removing an individual Flag."

* ^name = "FlagProvenance"
* ^url = "https://fhir.nhs.uk/England/StructureDefinition/FlagProvenance"
Expand Down
Loading

0 comments on commit 4049562

Please sign in to comment.