Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6951059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:10:17+00:00 2026-05-27T14:10:17+00:00

This is the data model for my core data database. I now need to

  • 0

This is the data model for my core data database.

I now need to fetch all ICD9 objects, both the disease and procedure ones. I can’t setup a fetch to search two entities, so is there a way I can merge these into one ICD9 object instead of two separate ones?

enter image description here

Updated model:

enter image description here

Error Message:

Unresolved error Error Domain=NSCocoaErrorDomain Code=134100 "The operation couldn’t be completed. (Cocoa error 134100.)" UserInfo=0x12ed7300 {metadata=<CFBasicHash 0x12ed5d20 [0x2f6eb38]>{type = immutable dict, count = 7,
entries =>
    2 : <CFString 0x12ed45b0 [0x2f6eb38]>{contents = "NSStoreModelVersionIdentifiers"} = <CFArray 0x12ed4d80 [0x2f6eb38]>{type = immutable, count = 1, values = (
    0 : <CFString 0x2f69cd8 [0x2f6eb38]>{contents = ""}
)}
    4 : <CFString 0x12ed4740 [0x2f6eb38]>{contents = "NSPersistenceFrameworkVersion"} = <CFNumber 0x12ed4da0 [0x2f6eb38]>{value = +320, type = kCFNumberSInt64Type}
    6 : <CFString 0x12ed48d0 [0x2f6eb38]>{contents = "NSStoreModelVersionHashes"} = <CFBasicHash 0x12ed53c0 [0x2f6eb38]>{type = immutable dict, count = 5,
entries =>
    0 : <CFString 0x12ed4c10 [0x2f6eb38]>{contents = "CPT"} = <CFData 0x12f7ce50 [0x2f6eb38]>{length = 32, capacity = 32, bytes = 0xbadc4637a7c1885cd19a176755d1fecf ... 29f23ba15836dff2}
    1 : <CFString 0x12ed4f10 [0x2f6eb38]>{contents = "ICD9Disease"} = <CFData 0x12f7cea0 [0x2f6eb38]>{length = 32, capacity = 32, bytes = 0x7cf87b9141b2c154fda8fa973b11aba4 ... 471f47adf2a60a63}
    2 : <CFString 0x12ed50a0 [0x2f6eb38]>{contents = "ICD9Procedure"} = <CFData 0x12f7d040 [0x2f6eb38]>{length = 32, capacity = 32, bytes = 0x05909fa15f0da3d0d9a4329e31da816a ... fe44e8c0de14354b}
    3 : <CFString 0x12ed5230 [0x2f6eb38]>{contents = "MedicalCode"} = <CFData 0x12f7d090 [0x2f6eb38]>{length = 32, capacity = 32, bytes = 0x7d1d70878edb9c839f9586011ad1726f ... e7a60fcde779e490}
    6 : <CFString 0x12ed5250 [0x2f6eb38]>{contents = "HCPCS"} = <CFData 0x12f7d0e0 [0x2f6eb38]>{length = 32, capacity = 32, bytes = 0x9d052e1525b4357a1cd9b6c1d6481bbf ... 7ef40429b86137c0}
}

    7 : <CFString 0x1a16aa8 [0x2f6eb38]>{contents = "NSStoreUUID"} = <CFString 0x12ed3f70 [0x2f6eb38]>{contents = "EC3CEFE5-2414-431F-ABCE-C67DE6471874"}
    8 : <CFString 0x1a16948 [0x2f6eb38]>{contents = "NSStoreType"} = <CFString 0x1a16958 [0x2f6eb38]>{contents = "SQLite"}
    9 : <CFString 0x12ed4a60 [0x2f6eb38]>{contents = "NSStoreModelVersionHashesVersion"} = <CFNumber 0xb8283f0 [0x2f6eb38]>{value = +3, type = kCFNumberSInt32Type}
    10 : <CFString 0x12ed4bf0 [0x2f6eb38]>{contents = "_NSAutoVacuumLevel"} = <CFString 0x12ed5570 [0x2f6eb38]>{contents = "2"}
}
, reason=The model used to open the store is incompatible with the one used to create the store}, {
    metadata =     {
        NSPersistenceFrameworkVersion = 320;
        NSStoreModelVersionHashes =         {
            CPT = <badc4637 a7c1885c d19a1767 55d1fecf de75bb71 1198e89c 29f23ba1 5836dff2>;
            HCPCS = <9d052e15 25b4357a 1cd9b6c1 d6481bbf 3ee5bbef 7d67313a 7ef40429 b86137c0>;
            ICD9Disease = <7cf87b91 41b2c154 fda8fa97 3b11aba4 49984cd5 b8b4694e 471f47ad f2a60a63>;
            ICD9Procedure = <05909fa1 5f0da3d0 d9a4329e 31da816a 0f76d10e 54122f9c fe44e8c0 de14354b>;
            MedicalCode = <7d1d7087 8edb9c83 9f958601 1ad1726f 0ced7e49 2a139a20 e7a60fcd e779e490>;
        };
        NSStoreModelVersionHashesVersion = 3;
        NSStoreModelVersionIdentifiers =         (
            ""
        );
        NSStoreType = SQLite;
        NSStoreUUID = "EC3CEFE5-2414-431F-ABCE-C67DE6471874";
        "_NSAutoVacuumLevel" = 2;
    };
    reason = "The model used to open the store is incompatible with the one used to create the store";
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:10:17+00:00Added an answer on May 27, 2026 at 2:10 pm

    You could create another abstract entity called ICD9 that descends from MedicalCode. Then ICD9Disease and ICD9Procedure would be concrete subclasses. Just move the common properties up to the abstract ICD9 class.

    Now you can perform a fetch request for all ICD9 entities and receive both sub entities back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my core data model: I'm trying to get all LanguageEntries from a
I have been running tests towards a Core Data model (SQLite3). I now need
I have a Core Data model similar to this: Company Entity companyName attribute (string)
I have a core data model, using the database store, that contains entities with
I have a problem. Imagine this data model: [Person] table has: PersonId, Name1 [Tag]
This is what my data model classes look like: public class Employee { public
i have this in my BlogRepository public IQueryable<Subnus.MVC.Data.Model.Post> GetPosts() { var query = from
I have a class that contains data from some model. This class has metadata
I accidentally managed to lose the old version of our data model, and now
I am working on this core data app, and im not exactly shure how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.