Exemple #1
0
        public FhirModel.CodeSystem GetResource()
        {
            var Resource = new FhirModel.CodeSystem();

            Resource.Id = "pyrofhirserver";
            SetProtectedMetaTag(Resource);
            Resource.Meta.LastUpdated = MasterLastUpdated;
            Resource.Url          = this.GetSystem();
            Resource.Version      = "1.00";
            Resource.Name         = "PyroFHIRServerCodeSystem";
            Resource.Title        = "The Pyro Server CodeSystem";
            Resource.Status       = FhirModel.PublicationStatus.Active;
            Resource.Experimental = false;
            Resource.DateElement  = new FhirModel.FhirDateTime(MasterLastUpdated);
            Resource.Publisher    = "Pyrohealth.net";
            var AngusContactDetail = Common.PyroHealthFhirResource.Elements.PyroHealthContactDetailAngusMillar.GetContactDetail();

            Resource.Contact = new List <FhirModel.ContactDetail>()
            {
                AngusContactDetail
            };
            Resource.Description   = new FhirModel.Markdown("List of codes used throughout the Pyro FHIR Server to identity concepts key to the operation of the server.");
            Resource.CaseSensitive = true;
            Resource.Compositional = false;
            Resource.Count         = Resource.Concept.Count;
            Resource.Content       = FhirModel.CodeSystem.CodeSystemContentMode.Complete;
            Resource.Concept       = new List <FhirModel.CodeSystem.ConceptDefinitionComponent>();
            foreach (var Definition in _CodeDefinitionDictionary.Values)
            {
                Resource.Concept.Add(Definition);
            }
            return(Resource);
        }
Exemple #2
0
        public FhirModel.CodeSystem GetResource()
        {
            var CodeSystemUpdateDate = new DateTimeOffset(2018, 07, 24, 10, 00, 00, new TimeSpan(8, 0, 0));
            var Resource             = new FhirModel.CodeSystem();

            Resource.Id = "pyro-task";
            IPyroFhirServerCodeSystem.SetProtectedMetaTag(Resource);
            Resource.Meta.LastUpdated = MasterLastUpdated;
            Resource.Url          = this.GetSystem();
            Resource.Version      = "1.00";
            Resource.Name         = "PyroTaskCodeSystem";
            Resource.Title        = "The Pyro Task CodeSystem";
            Resource.Status       = FhirModel.PublicationStatus.Active;
            Resource.Experimental = false;
            Resource.DateElement  = new FhirModel.FhirDateTime(CodeSystemUpdateDate);
            Resource.Publisher    = "Pyrohealth.net";
            var AngusContactDetail = Common.PyroHealthFhirResource.Elements.PyroHealthContactDetailAngusMillar.GetContactDetail();

            Resource.Contact = new List <FhirModel.ContactDetail>()
            {
                AngusContactDetail
            };
            Resource.Description   = new FhirModel.Markdown("List of codes used for Tasks types used and processed by the Pyro Server.");
            Resource.CaseSensitive = true;
            Resource.Compositional = false;
            Resource.Count         = Resource.Concept.Count;
            Resource.Content       = FhirModel.CodeSystem.CodeSystemContentMode.Complete;
            Resource.Concept       = new List <FhirModel.CodeSystem.ConceptDefinitionComponent>();
            foreach (var Definition in _CodeDefinitionDictionary.Values)
            {
                Resource.Concept.Add(Definition);
            }
            return(Resource);
        }